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
versionstringrequiredDataset version for caching and cache-busting.generatedAtstring (ISO 8601)requiredTimestamp when this dataset was generated.countnumberrequiredTotal number of status code entries.codes[].codenumberrequiredNumeric HTTP status code (e.g. 200, 404).codes[].textstringrequiredOfficial IANA reason phrase for the code.codes[].categorystringrequiredOne of: success, redirection, client_error, server_error.codes[].descriptionstringrequiredHuman-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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.