---
title: "HTTP Status Codes Cheatsheet | FindUtils"
description: "Common HTTP status codes and headers for requests, redirects, authentication, caching, and server errors."
url: https://findutils.com/cheatsheets/http-status-codes/
---

# HTTP Status Codes Cheatsheet

Common HTTP status codes and headers for requests, redirects, authentication, caching, and server errors. 41 commands in 7 sections, filed under [Web Development](https://findutils.com/cheatsheets/web/).

## 1xx Informational

- `100 Continue`: Server received request headers, client should send body
- `101 Switching Protocols`: Server is changing protocols (e.g., to WebSocket)
- `103 Early Hints`: Preload resources while server prepares response

## 2xx Success

- `200 OK`: Request succeeded
- `201 Created`: Request succeeded and created one or more resources
- `202 Accepted`: Request accepted for processing (async)
- `204 No Content`: Request succeeded with no response content; not specific to DELETE
- `206 Partial Content`: Partial resource returned (range request)

## 3xx Redirection

- `301 Moved Permanently`: Resource permanently moved to new URL
- `302 Found`: Temporary redirect (method may change)
- `303 See Other`: Retrieve the indicated resource with GET or HEAD
- `304 Not Modified`: Cached version is still valid
- `307 Temporary Redirect`: Temporary redirect (preserves method)
- `308 Permanent Redirect`: Permanent redirect (preserves method)

## 4xx Client Errors

- `400 Bad Request`: Invalid request syntax or parameters
- `401 Unauthorized`: Authentication required
- `403 Forbidden`: Server refuses the request; this does not prove successful authentication
- `404 Not Found`: No current representation found, or the server will not disclose that one exists
- `405 Method Not Allowed`: HTTP method not supported for this URL
- `408 Request Timeout`: Server timed out waiting for request
- `409 Conflict`: Request conflicts with current state
- `410 Gone`: Resource permanently deleted
- `413 Content Too Large`: Request body exceeds server limit
- `415 Unsupported Media Type`: Content-Type not supported
- `422 Unprocessable Content`: Request is well-formed but has semantic errors
- `429 Too Many Requests`: Rate limit exceeded

## 5xx Server Errors

- `500 Internal Server Error`: Generic server error
- `501 Not Implemented`: Server does not support the method
- `502 Bad Gateway`: Invalid response from upstream server
- `503 Service Unavailable`: Server temporarily overloaded/down
- `504 Gateway Timeout`: Upstream server timed out

## Common Headers

- `Content-Type: application/json`: Response body format
- `Authorization: Bearer <token>`: Authentication token
- `Cache-Control: max-age=3600`: Cache for 1 hour
- `Content-Length: 1234`: Size of response body in bytes
- `Accept: application/json`: Client expects JSON response
- `X-Rate-Limit-Remaining: 99`: API rate limit remaining
- `Location: /new-url`: Redirect target URL
- `ETag: "abc123"`: Resource version identifier

## Sources

- `https://www.rfc-editor.org/rfc/rfc9110.html`: RFC 9110: HTTP methods, response status meanings, and header semantics.
- `https://www.iana.org/assignments/http-status-codes`: IANA registry: assigned HTTP status codes and specification references.

## Related

- Cheatsheet: [React Hooks](https://findutils.com/cheatsheets/react-hooks/)
- Cheatsheet: [CSS Flexbox](https://findutils.com/cheatsheets/css-flexbox/)
- Cheatsheet: [CSS Grid](https://findutils.com/cheatsheets/css-grid/)
- Guide: [HTTP Request Builder: Send Public HTTP Calls Safely](https://findutils.com/guides/http-request-builder-guide/)
- Guide: [Postman to cURL Guide: Convert Collections into Portable Commands](https://findutils.com/guides/postman-to-curl-guide/)
- Guide: [HTTP Status Code Lookup: Meanings, Examples, and Limits](https://findutils.com/guides/http-status-code-lookup-guide/)
- Tool: [HTTP Status Code Lookup](https://findutils.com/network/http-status-code-lookup/)
- Tool: [HTTP Request Builder](https://findutils.com/developers/http-request-builder/)
- Tool: [API Docs Generator](https://findutils.com/developers/api-docs-generator/)
