HTTP Status Codes Cheat Sheet

A status code is a three-digit number a server returns with every response. The first digit tells you the family.

FamilyMeaning
1xxInformational, the request is still going
2xxSuccess
3xxRedirect, look somewhere else
4xxThe request has a problem
5xxThe server has a problem

2xx success

CodeNameNotes
200OKThe request worked
201CreatedA new resource was made, common after POST
202AcceptedReceived, processing later
204No ContentWorked, and there is nothing to return

3xx redirects

CodeNameNotes
301Moved PermanentlyUse for permanent URL changes, so search engines transfer the page
302FoundTemporary redirect
304Not ModifiedThe cached copy is still valid
307Temporary RedirectLike 302, keeps the method
308Permanent RedirectLike 301, keeps the method

4xx client errors

CodeNameNotes
400Bad RequestMalformed request or invalid data
401UnauthorizedNot signed in, or the credentials are wrong
403ForbiddenSigned in but not allowed
404Not FoundNo such page or resource
405Method Not AllowedThe URL does not accept that method
408Request TimeoutThe client was too slow
409ConflictThe request clashes with the current state
410GoneRemoved on purpose and not coming back
413Content Too LargeThe upload is too big
422Unprocessable ContentWell-formed but fails validation
429Too Many RequestsRate limit hit, wait and retry

5xx server errors

CodeNameNotes
500Internal Server ErrorA bug or crash on the server
502Bad GatewayA proxy got a bad answer from upstream
503Service UnavailableOverloaded or down for maintenance
504Gateway TimeoutAn upstream server took too long

For SEO

  • Use 301 when a page moves for good.
  • Use 404 or 410 for deleted pages, not a 200 page that says “not found”.
  • Use 503 with a Retry-After header for short planned downtime.
↑ ↓ navigateEnter openEsc close