Skip to content

Instantly share code, notes, and snippets.

@polakDas
Created July 14, 2023 14:55
Show Gist options
  • Save polakDas/af45cac7a4d9ddef0dd99a059d8d121a to your computer and use it in GitHub Desktop.
Save polakDas/af45cac7a4d9ddef0dd99a059d8d121a to your computer and use it in GitHub Desktop.
Here are the most commonly used HTTP status codes

Most Used HTTP Status Code

Informational Responses - 1xx

Successfull Responses - 2xx

GET, POST, PUT, DELETE

  • 200 - Everying is OK
  • 201 - Resource Created (POST)
  • 204 - No Content (suitable for DELETE)

Redirection Responses - 3xx

  • 301 - Moved Permanently
  • 302 - Found (but changed temporarily)
  • 304 - Not Modified

Client Error Responses - 4xx

  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 404 - Not Found
  • 405 - Method Not Allowed (suitable for API development)

Server Error Responses - 5xx

  • 500 - Internal Server Error
  • 501 - Not Implemented
  • 502 - Bad Gateway
  • 503 - Service Unavailable
  • 504 - Gateway Timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment