HTTP Status Codes Directory
Quickly identify response codes, understand why errors happen, and find exact solutions for your API and web application development.
Free HTTP status mock endpoint
Reproduce any status from 200 to 599 to test retries, error screens, and timeouts. CORS enabled, add ?delay=2000 to simulate a slow server.
curl -i https://castov.com/api/mock/4291xx1xx Informational
Request received, continuing process.
Indicates that the initial part of a request has been received and the client should proceed with the rest of the request.
The requester has asked the server to switch protocols and the server has agreed to do so.
WebDAV interim response indicating the server has accepted the full request but has not yet completed it.
Lets the server send preload Link headers before the final response so the browser can start fetching critical assets early.
2xx2xx Success
The action was successfully received, understood, and accepted.
The standard response for successful HTTP requests. The payload returned depends on the request method.
The request has been fulfilled, resulting in the creation of a new resource on the server.
The request has been accepted for processing, but the processing has not been completed.
The request succeeded, but the payload was modified by a transforming proxy from the origin's 200 OK response.
The server successfully processed the request, but is not returning any content in the response body.
The server processed the request and asks the client to reset the document view (e.g. clear a form).
The server is delivering only part of the resource due to a Range header sent by the client.
WebDAV response conveying multiple independent status codes for several sub-requests in an XML body.
3xx3xx Redirection
Further action must be taken to complete the request.
The request has more than one possible response and the client should choose one of them.
The requested resource has been assigned a new permanent URI and any future references should use one of the returned URIs.
The requested resource resides temporarily under a different URI. Future requests should continue using the original URI.
Directs the client to fetch the resource at another URI using a GET request.
Indicates that the resource has not been modified since the version specified by the conditional request headers (If-Modified-Since or If-None-Match).
The request should be repeated with another URI; however, future requests should still use the original URI without changing the HTTP method.
The request and all future requests should be repeated using another URI, strictly preserving the HTTP method.
4xx4xx Client Error
The request contains bad syntax or cannot be fulfilled.
The server cannot or will not process the request due to an apparent client error (e.g., malformed syntax, invalid framing, or deceptive routing).
The client must authenticate itself to get the requested response. Similar to 403, but specific for missing or invalid credentials.
Reserved for future use; commonly used by SaaS APIs to signal exhausted credits, failed billing, or an expired plan.
The server understood the request but refuses to authorize it. Unlike 401, re-authenticating with the same credentials will make no difference.
The server cannot find the requested resource. Links that lead to a 404 are often called broken or dead links.
The request method is recognized by the server but is not supported by the target resource.
The server cannot produce a response matching the Accept headers sent by the client.
The client must first authenticate itself with the proxy.
The server timed out waiting for the client to send a complete request.
Indicates that the request could not be processed because of conflict in the current state of the resource.
Indicates that the target resource is no longer available at the origin server and that this condition is likely to be permanent.
The server refuses the request because it requires a Content-Length header.
One or more conditions in the request headers (If-Match, If-Unmodified-Since) evaluated to false.
The request entity is larger than limits defined by server configuration.
The URI requested by the client is longer than the server is willing to interpret.
The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.
The Range header requested a portion of the file that lies outside the size of the target resource.
The server cannot meet the requirements of the Expect request header.
An April Fools' joke from RFC 2324 (Hyper Text Coffee Pot Control Protocol); the server refuses to brew coffee because it is a teapot.
The request was directed at a server that is not able to produce a response for this scheme and authority.
The request was well-formed but was unable to be followed due to semantic errors.
WebDAV: the resource being accessed is locked.
The server is unwilling to process a request that might be replayed (TLS 1.3 0-RTT early data).
The server refuses to perform the request using the current protocol but might after the client upgrades.
The origin server requires the request to be conditional (If-Match) to prevent lost updates.
The user has sent too many requests in a given amount of time (rate limiting).
The server refuses the request because its header fields are too large.
The resource cannot be served due to legal demands such as government censorship or court orders.
Non-standard Nginx code logged when the client closes the connection before the server sends a response.
5xx5xx Server Error
The server failed to fulfill an apparently valid request.
A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
The server does not support the functionality required to fulfill the request.
The server, while acting as a gateway or proxy, received an invalid response from the inbound server it accessed.
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server.
The server does not support, or refuses to support, the major version of HTTP that was used in the request message.
The server is unable to store the representation needed to complete the request.
The server detected an infinite loop while processing the request.
The client needs to authenticate to gain network access.
Cloudflare-specific: the origin server returned an empty, unknown, or unexpected response.
Cloudflare-specific: the origin server refused the connection from Cloudflare.
Cloudflare-specific: the TCP handshake with the origin server timed out.
Cloudflare-specific: Cloudflare could not reach the origin server at all.
Cloudflare-specific: a TCP connection was established but the origin did not reply within 100 seconds.
Cloudflare-specific: the SSL/TLS handshake between Cloudflare and the origin failed.
Cloudflare-specific: Cloudflare could not validate the origin's SSL certificate in Full (strict) mode.