Skip to content

Instantly share code, notes, and snippets.

@alihanekiz
Created January 16, 2024 16:06
Show Gist options
  • Save alihanekiz/388ee032bca55deec1699f1dee5bb7e9 to your computer and use it in GitHub Desktop.
Save alihanekiz/388ee032bca55deec1699f1dee5bb7e9 to your computer and use it in GitHub Desktop.
HTTP Status Codes

HTTP Status Codes

1xx Informational

  • 100 Continue: The initial part of a request has been received, and the client should continue with the request.
  • 101 Switching Protocols: The server is switching protocols as requested by the client.

2xx Success

  • 200 OK: Standard response for successful HTTP requests.
  • 201 Created: The request has been fulfilled and resulted in a new resource being created.
  • 204 No Content: The server successfully processed the request, but is not returning any content.

3xx Redirection

  • 301 Moved Permanently: The requested resource has been permanently moved to a new URL.
  • 302 Found: The requested resource resides temporarily under a different URL.
  • 304 Not Modified: Indicates that the resource has not been modified since the last request.

4xx Client Error

  • 400 Bad Request: The server cannot process the request due to a client error.
  • 401 Unauthorized: Authentication is required and has failed or has not been provided.
  • 403 Forbidden: The server understood the request but refuses to authorize it.
  • 404 Not Found: The requested resource could not be found.
  • 429 Too Many Requests: The user has sent too many requests in a given amount of time.

5xx Server Error

  • 500 Internal Server Error: A generic error message when the server encounters an unexpected condition.
  • 501 Not Implemented: The server does not support the functionality required to fulfill the request.
  • 503 Service Unavailable: The server is currently unable to handle the request due to a temporary overload or maintenance.

This list is not exhaustive but covers the most frequently encountered status codes of HTTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment