Skip to content
Toolbento

HTTP status codes

Look up any HTTP status code and what it means, from 200 OK to 504 Gateway Timeout.

Everything stays on this device

HTTP status codes runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

48 status codes.

1xx Information

100 Continue
The first part of the request arrived and the client should send the rest.
101 Switching Protocols
The server is changing protocol as asked, for example to WebSocket.
103 Early Hints
Headers sent ahead of the final response, so the browser can start preloading.

2xx Success

200 OK
The request worked. The response holds the result.
201 Created
The request worked and a new resource was made. Typical after POST.
202 Accepted
The request was taken in, but the work has not finished yet.
204 No Content
The request worked and there is nothing to send back. Typical after DELETE.
206 Partial Content
Only the byte range that was asked for is sent. Used for resumed downloads and video.

3xx Redirection

301 Moved Permanently
The resource has a new address for good. Search engines move to the new one.
302 Found
The resource is at another address for now. The method may change to GET.
303 See Other
Fetch another address with GET. Typical after a form is posted.
304 Not Modified
The cached copy is still good, so no body is sent.
307 Temporary Redirect
The resource is at another address for now. The method and body stay the same.
308 Permanent Redirect
The resource has a new address for good. The method and body stay the same.

4xx Client error

400 Bad Request
The server could not read the request: bad syntax, bad JSON or a missing field.
401 Unauthorized
Sign-in is needed, or the credentials sent were not accepted.
402 Payment Required
Reserved for payment. Some APIs use it when a plan or quota runs out.
403 Forbidden
The server knows who is asking and will not allow this action.
404 Not Found
Nothing exists at this address.
405 Method Not Allowed
The address exists, but not for this method. The Allow header lists what works.
406 Not Acceptable
The server cannot produce any of the formats listed in the Accept header.
408 Request Timeout
The client took too long to send the request.
409 Conflict
The request clashes with the current state, such as an edit to an outdated version.
410 Gone
The resource was here and has been removed for good.
411 Length Required
The request needs a Content-Length header.
412 Precondition Failed
A condition in the request headers, such as If-Match, was not met.
413 Content Too Large
The request body is larger than the server accepts.
414 URI Too Long
The address is longer than the server accepts.
415 Unsupported Media Type
The Content-Type of the request body is not one the server handles.
416 Range Not Satisfiable
The byte range asked for lies outside the file.
418 I'm a teapot
An April Fools joke from 1998 that stuck. Not used for real errors.
421 Misdirected Request
The request reached a server that cannot answer for this host.
422 Unprocessable Content
The request was read, but its values fail validation.
425 Too Early
The server will not risk handling a request that might be replayed.
426 Upgrade Required
The client must switch to another protocol, named in the Upgrade header.
428 Precondition Required
The request must be conditional, to stop two edits overwriting each other.
429 Too Many Requests
The rate limit was hit. Retry-After may say how long to wait.
431 Request Header Fields Too Large
The headers, often the cookies, are larger than the server accepts.
451 Unavailable For Legal Reasons
Access is blocked for a legal reason, such as a court order.

5xx Server error

500 Internal Server Error
The server hit an error it did not expect. The fault is on the server side.
501 Not Implemented
The server does not support what the request needs.
502 Bad Gateway
A proxy or gateway got a bad answer from the server behind it.
503 Service Unavailable
The server is overloaded or down for maintenance. Try again later.
504 Gateway Timeout
A proxy or gateway waited too long for the server behind it.
505 HTTP Version Not Supported
The server does not support the HTTP version of the request.
507 Insufficient Storage
The server has no room to store what the request needs.
508 Loop Detected
The server found an endless loop while handling the request.
511 Network Authentication Required
Sign in to the network first. Shown by Wi-Fi login pages.

Missing a feature or found a bug in HTTP status codes? Tell me on X (@_andrewtran) or by email.

How to use HTTP status codes

  1. Type a code, a class such as 4xx, or a word such as redirect.
  2. Read the matching codes, grouped by class.
  3. Clear the search to see the whole list again.

Questions and answers

What do the five classes mean?

1xx is information, 2xx is success, 3xx is a redirect, 4xx is a mistake in the request, and 5xx is a fault on the server.

What is the difference between 401 and 403?

401 means the server does not know who is asking. 403 means it knows, and the answer is still no.

Should a redirect be 301 or 302?

Use 301 when the move is for good and 302 when it is not. Use 308 and 307 when the method must stay the same.

Esc

Loading tools