apiguide.dev
Authoritative design patterns for developer-friendly APIs. Standardize your error schemas, document your status codes, secure your headers, and master the HTTP specification.
Reference Directories
API Errors →
Standard Problem+JSON structures for validation, authentication, and state conflicts.
Status Codes →
Semantics and API usage boundaries for informational, redirection, client, and server codes.
HTTP Headers →
Full specification metadata covering standard authorization, concurrency, and rate limits.
Request Methods →
Guarantees of safety, idempotence, and cacheability for HTTP request verbs.
Developer Guides →
Architectural guides detailing HTTP Caching, CORS preflight flow, and token security.
API Specifications →
In-depth references covering schema standard specifications like OpenAPI, AsyncAPI, and JSON Schema.
API Tooling →
Curated directory of industry tools covering documentation, mock testing, gateways, and observability.
Problem+JSON Guide →
Understand the RFC 9457 specification and why using URIs for error types is crucial.
Common API Scenarios
How to handle rate limits?
Protect your servers from abuse by implementing uniform rate-limiting responses. Learn which headers to write and when to drop client requests.
How to structure validation failures?
Return clear, nested parameter-level validation errors to clients when form submissions fail, using RFC 9457 standard patterns.
How to guarantee request idempotence?
Ensure safe retries for state-mutating requests (like payment actions) without duplicate charge processing by utilizing unique header keys.
The Standardized Error Pattern
Web APIs should use RFC 9457 (Problem+JSON) error responses rather than arbitrary ad-hoc properties, providing predictable error categorization.
{
"error": true,
"msg": "Invalid email format",
"code": 9942,
"timestamp": 178598402
}{
"type": "https://apiguide.dev/errors/validation-failed",
"title": "Validation Failed",
"status": 422,
"detail": "The request body validation parameters failed.",
"instance": "/users/102/profile",
"invalid_params": [
{
"name": "email",
"reason": "Email address must contain '@' sign"
}
]
}Quick Reference Dashboard
Featured Error Schemas
Unauthorized: A standardized definition for this error code.
Conflict: A standardized definition for this error code.
Unprocessable Entity: A standardized definition for this error code.
Too Many Requests: A standardized definition for this error code.