Skip to content

Instantly share code, notes, and snippets.

@lordlycastle
Created July 20, 2020 00:11
Show Gist options
  • Save lordlycastle/d05cd221398d63f6d1f77348165a1f1f to your computer and use it in GitHub Desktop.
Save lordlycastle/d05cd221398d63f6d1f77348165a1f1f to your computer and use it in GitHub Desktop.

Http Status Codes

This is a list of Hypertext Transfer Protocol response status codes, status codes are issued by the server in response to the request made by the client.

All the HTTP response status codes are seperated into five classes or categories. The first digit of the code tells us the class of the response, while the last two digits do not have any classifying or categorizing role.

There are five classes of Http Status Codes

Category Meaning
1xx Informational response
2xx Successful
3xx Redirection
4xx Client Error
5xx Server Error

⭐️ 1xx Informational response codes

  • 100 Continue
  • 101 Switching Protocols
  • 102 Processing
  • 103 Early Hints

⭐️ 2xx Success Status codes

  • 200 Ok
  • 201 Created
  • 202 Accepted
  • 203 Non authoritative information
  • 204 No content
  • 205 Reset content
  • 206 Partial Content
  • 207 Multi status
  • 208 Already Report
  • 226 IM Used

⭐️ 3xx Redeirection Codes

  • 300 Multiple Choices
  • 301 Moved Permanently
  • 302 Found (Previously "Moved temporarily")
  • 303 See other
  • 304 Not modified
  • 305 Use Proxy
  • 306 Switch Proxy
  • 307 Temporarily Redirect
  • 308 Permanent Redirect

⭐️ 4xx Client Error Status Codes

  • 400 Bad Request
  • 401 Unauthorized
  • 402 Payment Required
  • 403 Forbidden
  • 404 Not Found
  • 405 Method Not Allowed
  • 406 Not Acceptable
  • 407 Proxy Authentication Required
  • 408 Request Timeout
  • 409 Conflict
  • 410 Gone
  • 411 Length Required
  • 412 Precondition Failed
  • 413 Payload Too Large / Request Entity Too Large
  • 414 URI Too Long
  • 415 Unsupported Media Type
  • 416 Range Not Satisfiable
  • 417 Expectation Failed
  • 418 I'm a teapot
  • 421 Misdirected Request
  • 422 Unprocessable Entity
  • 423 Locked
  • 424 Failed Dependency
  • 425 Too Early
  • 426 Upgrade Required
  • 428 Precondition Required
  • 429 Too Many Requests
  • 431 Request Header Fields Too Large
  • 451 Unavailable For Legal Reasons
  • 444 No Response (Nginx)
  • 449 Retry With (Microsoft)

⭐️ 5xx Server Error Status Codes

  • 500 Internal Server Error
  • 501 Not Implemented
  • 502 Bad Gateway
  • 503 Service Unavailable
  • 504 Gateway Timeout
  • 505 HTTP Version Not Supported
  • 506 Variant Also Negotiates
  • 507 Insufficient Storage
  • 508 Loop Detected
  • 509 Bandwidth Limit Exceeded (Apache)
  • 510 Not Extended
  • 511 Network Authentication Required
  • 598 Network read timeout error
  • 599 Network connect timeout error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment