HTTP Status Codes Guide: Meaning and Fix

Every code a server returns, explained: what 301, 403, 404, 500, 502, 503 and Cloudflare 52x errors mean, and what to do when you see them. Search by number or word.

Search a code
200301404503

Guide

Results: 36

CodeNameMeaningWhat to do
100ContinueThe server got the start of the request; continue.—
101Switching ProtocolsSwitching to another protocol such as WebSocket.—
200OKThe request succeeded.Nothing.
201CreatedA new resource was created, common in APIs.Nothing.
204No ContentSuccess with no content to return.Nothing.
206Partial ContentPart of a file was sent, as in video streaming.Nothing.
301Moved PermanentlyThe page moved permanently and its search value moves too.Use it when URLs change.
302FoundA temporary redirect.For maintenance or tests only.
304Not ModifiedNot changed; the browser uses its cached copy.Nothing; it speeds things up.
307Temporary RedirectA temporary redirect keeping the request method.—
308Permanent RedirectA permanent redirect keeping the request method.—
400Bad RequestThe request is malformed, often bad data or cookies.Clear the site cookies and retry.
401UnauthorizedThe page needs authentication.Log in or check the password.
403ForbiddenAccess denied: permissions, a security rule or your IP blocked.Check permissions and htaccess; send your IP to support.
404Not FoundThe page does not exist.Fix the link or add a 301 redirect.
405Method Not AllowedThe request method is not allowed here.Check the form or API setup.
408Request TimeoutThe request took too long to arrive.Try a faster connection.
410GoneThe page was removed permanently on purpose.Google drops it faster than a 404.
413Payload Too LargeThe upload exceeds the allowed size.Raise the upload limit in PHP settings.
414URI Too LongThe URL is too long.Shorten it or use POST.
422Unprocessable ContentData understood but invalid, common in APIs.Check required fields.
429Too Many RequestsToo many requests in a short time.Wait, and check bots and plugins.
451Unavailable For Legal ReasonsBlocked for legal reasons.—
500Internal Server ErrorAn error inside the site: PHP code, a plugin or htaccess.Check the error log; disable the latest plugin.
501Not ImplementedThe server does not support this request.—
502Bad GatewayA proxy got a bad response from the application.Usually PHP or the app stopped; contact your host.
503Service UnavailableTemporarily unavailable: overload or maintenance.Wait and retry; check plan resources.
504Gateway TimeoutThe application took too long to answer the proxy.Look for a slow page or query.
508Resource Limit Is ReachedOn CloudLinux hosting: the site hit its plan resource limit.Reduce load or upgrade the plan.
520Cloudflare: Unknown ErrorCloudflare got an unexpected response from your server.Check server logs.
521Cloudflare: Web Server Is DownYour server refused Cloudflare or is down.Make sure it runs and does not block Cloudflare IPs.
522Cloudflare: Connection Timed OutCloudflare could not connect in time.Check the firewall and server load.
523Cloudflare: Origin Is UnreachableNo route to your server, often a wrong DNS record.Check the A record.
524Cloudflare: A Timeout OccurredYour server connected but answered too slowly.Look for a slow process.
525Cloudflare: SSL Handshake FailedSSL handshake between Cloudflare and your server failed.Make sure the server has a certificate.
526Cloudflare: Invalid SSL CertificateThe origin certificate is invalid in Full (strict) mode.Renew or install a valid certificate.

How the tool works

Simple steps, all in your browser with no sign-up.

Type the code

Or a word like redirect.

Read the meaning

In Arabic and English.

Apply the fix

A practical step for each code.

The five groups

GroupMeaning
1xxInformation during the request
2xxSuccess
3xxRedirect elsewhere
4xxA problem with the request: wrong link or permission
5xxA problem in the server or app

Check your site now

Find your site's code with Is my website down?. 404s after URL changes are fixed with 301s from the htaccess generator. SSL errors are checked with the SSL checker.

Key terms

Short definitions of what you meet along the way.

Status code
A three-digit number the server returns to report the result.
Proxy
A server between visitor and app, such as Nginx or Cloudflare, the source of 502 and 504.
Error log
A file recording PHP and server errors, the first place to look on a 500.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

301 vs 302?

301 is permanent and passes search value; 302 is temporary and does not.

Do 404s hurt SEO?

Having some is normal. It hurts when important linked pages 404, so redirect them with 301.

502 vs 503 vs 504?

502 a bad response from the app, 503 temporarily unavailable, 504 the app answered too slowly.

What is error 508?

On CloudLinux hosting it means the site hit its plan resource limit, such as CPU or processes.

Does your site throw 5xx errors often?

We move it to our hosting and review the cause.

Contact us on WhatsApp