200 · 301 · 404 · 503
HTTP status codes reference
All the standard HTTP response codes, from 100 Continue to 511 Network Authentication Required, each with a plain explanation, when you’d see or send it, and a link to the specification that defines it. Search by number or by word, or filter by class.
Private: your files never leave your device.
- 100
Continue Spec: RFC 9110
The server got the request headers; the client may send the body.
When: Large uploads sent with “Expect: 100-continue”.
- 101
Switching Protocols Spec: RFC 9110
The server agrees to change protocol as the client asked in the Upgrade header.
When: Opening a WebSocket connection.
- 102
Processing Spec: RFC 2518
The server has accepted a WebDAV request but hasn’t finished it (obsolete).
When: Long WebDAV operations; rarely used today.
- 103
Early Hints Spec: RFC 8297
Preliminary headers sent before the final response, so the browser can start loading resources.
When: Sending Link: rel=preload headers while the page is still being generated.
- 200
The request succeeded; the body contains the result.
When: Normal successful GET, or a POST that returns data.
- 201
Created Spec: RFC 9110
The request succeeded and created a new resource.
When: A POST that creates a record; include a Location header pointing to it.
- 202
Accepted Spec: RFC 9110
The request was accepted for processing, which hasn’t finished.
When: Queued jobs, batch processing, async APIs.
- 203
Non-Authoritative Information Spec: RFC 9110
Success, but a proxy modified the response from the origin server.
When: Transforming proxies; rare.
- 204
No Content Spec: RFC 9110
Success with no body to return.
When: A DELETE or PUT with nothing to send back; CORS preflight responses.
- 205
Reset Content Spec: RFC 9110
Success; the client should reset the form or view that sent the request.
When: Clearing a form after submission; rare.
- 206
Partial Content Spec: RFC 9110
The body is only the byte range asked for with a Range header.
When: Video streaming, resumable downloads.
- 207
Multi-Status Spec: RFC 4918
The body (XML) holds separate statuses for several resources.
When: WebDAV operations on several files.
- 208
Already Reported Spec: RFC 5842
Members of a WebDAV binding already listed earlier in the response.
When: WebDAV with bindings; rare.
- 226
IM Used Spec: RFC 3229
The response is the result of instance manipulations applied to the resource.
When: Delta encoding; rare.
- 300
Multiple Choices Spec: RFC 9110
There are several representations to choose from.
When: Rare; content negotiation without a clear choice.
- 301
Moved Permanently Spec: RFC 9110
The resource has a new permanent URL, given in Location.
When: Changed URLs and HTTP → HTTPS; search engines pass ranking to the new URL. Clients may change POST to GET.
- 302
Found Spec: RFC 9110
The resource is temporarily at another URL.
When: Temporary redirects; clients may change POST to GET (use 307 to prevent that).
- 303
See Other Spec: RFC 9110
Get the result at another URL with GET.
When: Redirect after a form POST (the Post/Redirect/Get pattern).
- 304
Not Modified Spec: RFC 9110
The cached copy is still valid; no body is sent.
When: Conditional requests with If-None-Match / If-Modified-Since.
- 307
Temporary Redirect Spec: RFC 9110
Temporarily at another URL; repeat the same method and body there.
When: Temporary redirects of POST/PUT requests, HSTS upgrades in browsers.
- 308
Permanent Redirect Spec: RFC 9110
Permanently at another URL; repeat the same method and body there.
When: Permanent moves of API endpoints that receive POST.
- 400
Bad Request Spec: RFC 9110
The server can’t process the request because it is malformed.
When: Invalid JSON, missing required fields, bad query parameters.
- 401
Unauthorized Spec: RFC 9110
Authentication is required or has failed; the response includes WWW-Authenticate.
When: Missing or expired login token. (Despite the name, it means unauthenticated.)
- 402
Payment Required Spec: RFC 9110
Reserved for future use; some APIs use it for billing problems.
When: Payment or quota errors in some APIs (non-standard usage).
- 403
Forbidden Spec: RFC 9110
The server understood the request but refuses it.
When: Logged in but not allowed; blocked IPs; directory listing disabled.
- 404
Not Found Spec: RFC 9110
The server has nothing at this URL (or won’t say).
When: Mistyped or deleted pages; hiding resources from users without access.
- 405
Method Not Allowed Spec: RFC 9110
The URL exists but doesn’t accept this method; Allow lists the ones it does.
When: A POST to a read-only endpoint.
- 406
Not Acceptable Spec: RFC 9110
No representation matches the Accept headers.
When: Asking for XML from a JSON-only API.
- 407
Proxy Authentication Required Spec: RFC 9110
Like 401, but the proxy needs the credentials.
When: Corporate proxies.
- 408
Request Timeout Spec: RFC 9110
The server gave up waiting for the client to finish the request.
When: Idle or very slow connections.
- 409
Conflict Spec: RFC 9110
The request conflicts with the current state of the resource.
When: Edit conflicts, duplicate unique values, version mismatches.
- 410
Gone Spec: RFC 9110
The resource was removed on purpose and won’t come back.
When: Deleted content; search engines drop it faster than a 404.
- 411
Length Required Spec: RFC 9110
The request needs a Content-Length header.
When: Uploads without a length.
- 412
Precondition Failed Spec: RFC 9110
A condition in the request headers (If-Match…) is false.
When: Optimistic locking: someone else changed the resource first.
- 413
Content Too Large Spec: RFC 9110
The request body is larger than the server allows.
When: File uploads above the size limit.
- 414
URI Too Long Spec: RFC 9110
The URL is longer than the server will handle.
When: Huge query strings; use POST instead.
- 415
Unsupported Media Type Spec: RFC 9110
The body’s format (Content-Type) isn’t supported.
When: Sending form data to a JSON-only endpoint.
- 416
Range Not Satisfiable Spec: RFC 9110
The requested byte range is outside the file.
When: Resuming a download past the end of a changed file.
- 417
Expectation Failed Spec: RFC 9110
The server can’t meet the Expect header.
When: Servers that don’t support 100-continue.
- 418
(Unused) Spec: RFC 9110
Reserved: from the 1998 April Fools’ “Hyper Text Coffee Pot Control Protocol” (“I’m a teapot”); not a real status.
When: Easter eggs. Don’t use it in real APIs.
- 421
Misdirected Request Spec: RFC 9110
The request reached a server that can’t answer for this host.
When: HTTP/2 connection reuse across hosts with different certificates.
- 422
Unprocessable Content Spec: RFC 9110
The body is well-formed but its content is invalid.
When: Validation errors in REST APIs (e.g. an email field that isn’t an email).
- 423
Locked Spec: RFC 4918
The resource is locked.
When: WebDAV file locks.
- 424
Failed Dependency Spec: RFC 4918
The request failed because an earlier one it depended on failed.
When: WebDAV batch operations.
- 425
Too Early Spec: RFC 8470
The server won’t process a request that might be replayed.
When: TLS 1.3 early data.
- 426
Upgrade Required Spec: RFC 9110
The client must switch protocol (named in the Upgrade header).
When: Servers that require a newer protocol.
- 428
Precondition Required Spec: RFC 6585
The server requires a conditional request (If-Match…).
When: Preventing lost updates in APIs.
- 429
Too Many Requests Spec: RFC 6585
The client sent too many requests; Retry-After may say when to try again.
When: API rate limits, login throttling.
- 431
Request Header Fields Too Large Spec: RFC 6585
Headers (or one header) are too large.
When: Oversized cookies.
- 451
Unavailable For Legal Reasons Spec: RFC 7725
Blocked for legal reasons, such as a court order.
When: Geo-blocking for legal reasons, takedown orders.
- 500
Internal Server Error Spec: RFC 9110
Something went wrong on the server with no more specific code.
When: Unhandled exceptions, bugs.
- 501
Not Implemented Spec: RFC 9110
The server doesn’t support the method at all.
When: Unknown HTTP methods.
- 502
Bad Gateway Spec: RFC 9110
A proxy or gateway got an invalid response from the server behind it.
When: The app behind a load balancer crashed or returned garbage.
- 503
Service Unavailable Spec: RFC 9110
The server can’t handle the request right now; Retry-After may say when.
When: Maintenance, overload. Search engines retry rather than drop the page.
- 504
Gateway Timeout Spec: RFC 9110
A proxy or gateway didn’t get a response from the server behind it in time.
When: Slow backends, long database queries behind a CDN.
- 505
HTTP Version Not Supported Spec: RFC 9110
The server doesn’t support the HTTP version used.
When: Very old or very new clients; rare.
- 506
Variant Also Negotiates Spec: RFC 2295
Content negotiation configuration error on the server.
When: Rare.
- 507
Insufficient Storage Spec: RFC 4918
The server can’t store what’s needed to complete the request.
When: WebDAV servers out of disk space.
- 508
Loop Detected Spec: RFC 5842
The server found an infinite loop while processing.
When: WebDAV with bindings; rare.
- 510
Not Extended Spec: RFC 2774
Further extensions are required (obsolete).
When: Rare.
- 511
Network Authentication Required Spec: RFC 6585
The client must log in to the network first.
When: Captive portals on public Wi-Fi.
How was this tool?
How to use HTTP status codes
Step 1: Type a code (404) or a word (redirect, rate limit).
Step 2: Or filter by class: 1xx to 5xx.
Step 3: Follow the RFC link for the exact specification.
The five classes
- 1xx Informational: the request was received and is continuing.
- 2xx Success: the request worked.
- 3xx Redirection: the client needs to go somewhere else.
- 4xx Client error: something is wrong with the request (address, credentials, data).
- 5xx Server error: the server failed on a request that may have been valid.
The codes are registered by IANA; most are defined in RFC 9110 (HTTP Semantics, 2022), which replaced RFC 7231. Clients that don’t know a code treat it like the x00 code of its class.
Frequently asked questions
What’s the difference between 401 and 403?
401 means the request isn’t authenticated (no or invalid credentials). 403 means the server knows who you are but you aren’t allowed.
301 or 308 for a permanent redirect?
Both are permanent. 301 lets clients turn a POST into a GET when following it; 308 keeps the method and body, which matters for APIs. For ordinary page moves 301 is fine.
Which codes matter for SEO?
301/308 pass a page’s signals to the new URL, 404 and 410 remove pages from the index (410 a little faster), and 503 tells crawlers to come back later during maintenance.