Complete reference of all HTTP response status codes with descriptions, use cases, and common causes.
HTTP status codes are three-digit numbers returned by web servers to indicate the result of a client's request. They're essential for debugging APIs, understanding web behavior, and building robust applications.
301 (Moved Permanently) tells search engines to transfer SEO value to the new URL. 302 (Found/Temporary) says the move is temporary — search engines keep the original URL indexed. Use 301 for permanent URL changes and 302 for temporary redirects.
400 (Bad Request) means the request syntax is malformed. 422 (Unprocessable Entity) means the syntax is correct but the content is semantically invalid (e.g., valid JSON with an email field that's not a valid email). Use 400 for parse errors, 422 for validation errors.
204 means the request succeeded but there's no response body. Common for DELETE requests, auto-save operations, and PUT/PATCH where the client already has the updated data.