Data
HTTP Status Codes JSON Example
A reference JSON dataset of the most important HTTP status codes — including success, redirection, client error, and server error categories. Copy-ready for API documentation, mock servers, and error-handling libraries.
Field Reference
versionrequiredstringDataset version for caching and cache-busting.generatedAtrequiredstring (ISO 8601)Timestamp when this dataset was generated.countrequirednumberTotal number of status code entries.codes[].coderequirednumberNumeric HTTP status code (e.g. 200, 404).codes[].textrequiredstringOfficial IANA reason phrase for the code.codes[].categoryrequiredstringOne of: success, redirection, client_error, server_error.codes[].descriptionrequiredstringHuman-readable explanation of what this code means.Variants
Client errors onlyFiltered to 4xx codes — useful for building error-handling utilities
Common Use Cases
- →Building a reference lookup table in your API client or SDK
- →Seeding mock servers with known error responses
- →Generating user-friendly error messages from numeric codes
- →Testing API error-handling branches with known status codes
- →Powering developer documentation portals and status code glossaries
HTTPstatus codesREST APIreferenceerror handling
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
API DesignREST API ResponseGeneric REST API response wrapper with data payload, status, and pagination meta.API DesignError ResponseREST API error JSON with status code, machine-readable error code, and validation details.API DesignPagination ResponsePaginated list response JSON with offset, cursor, total, and navigation links.