HTTP Status Codes
60 flashcards by MentisLibrary
Every status code worth knowing, what it means, and when you would actually see it in the wild.
- 100
- Continue: the server received the request headers and the client should send the body
- 101
- Switching Protocols: the server agrees to change protocols as requested
- 200
- OK: the request succeeded
- 201
- Created: the request succeeded and a new resource was created
- 202
- Accepted: the request was received but processing has not completed
- 204
- No Content: success with no response body
- 206
- Partial Content: the server is returning only part of the resource
- 301
- Moved Permanently: the resource has a new permanent URL
- 302
- Found: temporary redirect to another URL
- 304
- Not Modified: the cached copy is still valid
- 307
- Temporary Redirect: like 302 but the request method must not change
- 308
- Permanent Redirect: like 301 but the request method must not change
- 400
- Bad Request: the server cannot process a malformed request
- 401
- Unauthorized: authentication is required or the provided credentials are invalid
- 403
- Forbidden: the server understood the request but refuses to authorize it
- 404
- Not Found: the requested resource does not exist
- 405
- Method Not Allowed: the URL exists but not for this HTTP method
- 406
- Not Acceptable: the server cannot produce a response matching the Accept header
- 408
- Request Timeout: the server gave up waiting for the client to finish sending
- 409
- Conflict: the request conflicts with the current state of the resource
- 410
- Gone: the resource existed but was permanently removed
- 411
- Length Required: the request must include a Content-Length header
- 412
- Precondition Failed: an If-Match or similar conditional header check failed
- 413
- Content Too Large (formerly Payload Too Large): the request body exceeds server limits
- 414
- URI Too Long: the request URL exceeds the server's length limit
- 415
- Unsupported Media Type: the server rejects the request body's format
- 418
- I'm a teapot: an April Fools joke code from the Hyper Text Coffee Pot Control Protocol
- 422
- Unprocessable Content: the request is well-formed but semantically invalid
- 423
- Locked: the resource is locked and cannot be modified
- 425
- Too Early: the server refuses to process a request that might be replayed