Hosting Cost
Beginner Resources

HTTP Status Codes Cheat Sheet

Marcus Feld, Infrastructure Editor
Marcus Feld

Infrastructure Editor

Disclosure: Some links on this page are affiliate links — if you sign up through one, we may earn a commission at no extra cost to you. It never changes our ratings, rankings or verdicts: we don't sell hosting and take no pay-for-placement.

Who it's for

  • Site owners troubleshooting errors
  • Developers
  • Support teams
  • Anyone diagnosing a broken site

Every response a web server sends back carries a three-digit HTTP status code indicating what happened. This HTTP status codes cheat sheet shows the first digit and what it tells you at a glance — the fastest way to triage a problem before digging into specifics.

HTTP Status Code Ranges

RangeMeaningWhat it tells you
2xxSuccessThe request worked as expected
3xxRedirectionThe resource has moved; the browser is being sent elsewhere
4xxClient errorThe problem is with the request (bad URL, missing permission, etc.)
5xxServer errorThe problem is on the server, not the visitor’s request

Most hosting troubleshooting centers on the 5xx range, because those codes mean the server itself failed to complete a valid request. The fault sits with the hosting environment, application, or configuration, not with anything the visitor did wrong.

Common HTTP Status Codes and Their Fixes

CodeNameCommon causeFix
200OK—Working as expected
301Moved PermanentlyURL structure changedConfirm redirect target is correct
302Found (temporary redirect)Temporary URL changeConfirm it should be temporary, not permanent
400Bad RequestMalformed request from the clientCheck the URL/form data being submitted
401UnauthorizedMissing or invalid authenticationCheck login credentials or API keys
403ForbiddenPermission denied by the serverCheck file permissions
404Not FoundPage doesn’t exist at that URLCheck the URL or restore the missing page
429Too Many RequestsRate limit exceededCheck for a misbehaving script or bot traffic
500Internal Server ErrorBroad server-side failure — often a plugin, script, or .htaccess errorSee 500 error causes & fixes
502Bad GatewayUpstream server sent an invalid responseSee 502 error causes & fixes
503Service UnavailableServer temporarily overloaded or in maintenanceSee 503 error causes & fixes
504Gateway TimeoutUpstream server took too long to respondSee 504 error causes & fixes

How to Use This HTTP Status Codes Cheat Sheet During an Outage

Identify the code first. Check the browser’s error page, developer tools network tab, or server logs. Once you have the code, its first digit tells you where to look: 4xx means check the request or permissions, 5xx means check the server and application. From there, follow the link to the dedicated page for that specific error, which covers ranked causes and step-by-step fixes.

If the site is fully unreachable rather than returning any status code at all, that’s usually a DNS or connectivity issue rather than an HTTP error. See “this site can’t be reached” and the website down diagnostic checklist instead.

For the full troubleshooting hub these codes belong to, see common web hosting errors. For the resources hub, see web hosting resources.