HTTP status codes
What the status codes a web server answers with mean, from 100 Continue to 504 Gateway Timeout, and the headers that go with them.
Sign up to study this deck44 cards, free
Already have an account? Log in and add it from here.
Every card in the deck
Shown here with the answers. When you study, Owl shows you the question, waits for you to recall the answer, and brings each card back just before you would forget it.
- What do HTTP status codes in the 1xx range mean?Informational: the request was received and is still being processed.
- What do HTTP status codes in the 2xx range mean?Successful: the request was received, understood and accepted.
- What do HTTP status codes in the 3xx range mean?Redirection: the client has to do something more to complete the request.
- What do HTTP status codes in the 4xx range mean?Client error: the request is wrong or can't be fulfilled.
- What do HTTP status codes in the 5xx range mean?Server error: the server failed to fulfil a request that looks valid.
- What does HTTP status code 100 mean?Continue. The server has received the request's headers, and the client should go on to send the body.
- What does HTTP status code 101 mean?Switching Protocols. The server is switching to the protocol the client asked for in its Upgrade header, for example to WebSocket.
- What does HTTP status code 200 mean?OK. The request succeeded.
- What does HTTP status code 201 mean?Created. The request succeeded and a new resource was created.
- What does HTTP status code 202 mean?Accepted. The request was accepted for processing, but the processing has not finished.
- What does HTTP status code 204 mean?No Content. The request succeeded, and there is no body to send back.
- What does HTTP status code 206 mean?Partial Content. The server is sending only the part of the resource that the client asked for with a Range header.
- What does HTTP status code 301 mean?Moved Permanently. The resource has a new permanent URL, given in the Location header.
- What does HTTP status code 302 mean?Found. The resource is temporarily at another URL, given in the Location header.
- What does HTTP status code 303 mean?See Other. The client should fetch the result from another URL, using GET.
- What does HTTP status code 304 mean?Not Modified. The client's cached copy is still current, so the server sends no body.
- What does HTTP status code 307 mean?Temporary Redirect. The resource is temporarily at another URL, and the client must repeat the request there with the same method and body.
- What does HTTP status code 308 mean?Permanent Redirect. The resource has a new permanent URL, and the client must repeat the request there with the same method and body.
- What does HTTP status code 400 mean?Bad Request. The server won't process the request because of something it sees as a client error, such as malformed syntax.
- What does HTTP status code 401 mean?Unauthorized. The request has no valid authentication credentials.
- What does HTTP status code 403 mean?Forbidden. The server understood the request but refuses to fulfil it.
- What does HTTP status code 404 mean?Not Found. The server has nothing at that URL.
- What does HTTP status code 405 mean?Method Not Allowed. The resource exists but doesn't support the request's method.
- What does HTTP status code 406 mean?Not Acceptable. The server can't produce a response in any format the request's Accept headers allow.
- What does HTTP status code 408 mean?Request Timeout. The server gave up waiting for the client to finish sending the request.
- What does HTTP status code 409 mean?Conflict. The request conflicts with the current state of the resource.
- What does HTTP status code 410 mean?Gone. The resource was removed on purpose and is not expected to come back.
- What does HTTP status code 412 mean?Precondition Failed. A condition in the request's headers, such as If-Match, was not met.
- What does HTTP status code 413 mean?Content Too Large. The request body is larger than the server is willing to process. It was called Payload Too Large until RFC 9110 renamed it in 2022.
- What does HTTP status code 415 mean?Unsupported Media Type. The request body is in a format the server doesn't support.
- What does HTTP status code 422 mean?Unprocessable Content. The request is well formed, but the server can't act on what it says, for example because a field fails validation.
- What does HTTP status code 429 mean?Too Many Requests. The client has sent too many requests in a given time: it is being rate limited.
- What does HTTP status code 500 mean?Internal Server Error. The server hit an unexpected condition and couldn't fulfil the request.
- What does HTTP status code 501 mean?Not Implemented. The server doesn't support what the request needs, for example it doesn't recognise the method.
- What does HTTP status code 502 mean?Bad Gateway. A server acting as a gateway or proxy got an invalid response from the server behind it.
- What does HTTP status code 503 mean?Service Unavailable. The server can't handle the request right now, usually because it is overloaded or down for maintenance.
- What does HTTP status code 504 mean?Gateway Timeout. A server acting as a gateway or proxy didn't get a response in time from the server behind it.
- Which HTTP response header gives the new URL in a 3xx redirect?Location
- Which HTTP response header can a 429 or 503 response use to say how long the client should wait?Retry-After
- Which HTTP response header must a 401 response carry, to say how the client can authenticate?WWW-Authenticate
- Which HTTP response header does a 405 Method Not Allowed response use to list the methods the resource supports?Allow
- In HTTP, what is the difference between 401 and 403?401 means the request has no valid credentials, so signing in may help. 403 means the server knows who is asking, or doesn't care, and refuses anyway.
- In HTTP, how does a 307 redirect differ from a 302?After a 307 the client must keep the same method and body. After a 302, clients are allowed to change a POST into a GET.
- In HTTP, how does a 308 redirect differ from a 301?After a 308 the client must keep the same method and body. After a 301, clients are allowed to change a POST into a GET.
Sources
- RFC 9110: HTTP Semantics, section 15: Status Codes www.rfc-editor.org/rfc/rfc9110.html#name-status-codes
- RFC 6585: Additional HTTP Status Codes www.rfc-editor.org/rfc/rfc6585.html
- MDN: HTTP response status codes developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
Owl keeps the calendar. You do the remembering.
Already have an account? Log in and add it from here.
