Reference
HTTP status codes, explained
What each common status code means, what usually causes it, how to fix it, and how an uptime monitor treats it.
Every HTTP response starts with a three-digit status code. The first digit is the class: 2xx worked, 3xx go elsewhere, 4xx the request was wrong, 5xx the server failed. Clients that don't know a specific code treat it like the class's x00 code, so an unknown 418 is handled like a 400.
For uptime monitoring the line that matters is usually between 3xx and 4xx: by default, Uptenna counts 200 to 399 as up (following redirects to the final page) and anything else as a failed check. You can change the expected codes per monitor.
2xx success
The request worked.
- 200OK200 OK means the request succeeded and the response carries the result: the page, the JSON or the file you asked for.
- 201Created201 Created means the request succeeded and created a new resource, usually in response to a POST.
- 204No Content204 No Content means the request succeeded and there is deliberately no response body.
3xx redirection
Look somewhere else, or use your cached copy.
- 301Moved Permanently301 Moved Permanently means the resource has a new permanent URL, given in the Location header; clients and search engines should use the new one.
- 302Found302 Found is a temporary redirect: the resource is at another URL (in the Location header) for now, and clients should keep using the original URL.
- 303See Other303 See Other tells the client to fetch a different URL with GET, typically after a form submission.
- 304Not Modified304 Not Modified means the cached copy the client already has is still valid, so the server sends no body.
- 307Temporary Redirect307 Temporary Redirect sends the client to another URL temporarily and requires it to repeat the same method and body there.
- 308Permanent Redirect308 Permanent Redirect means the resource moved permanently and the client must repeat the same method and body at the new URL.
4xx client errors
Something about the request is wrong.
- 400Bad Request400 Bad Request means the server won't process the request because something about it is malformed or invalid.
- 401Unauthorized401 Unauthorized means the request has no valid credentials: the client must authenticate (log in or send a token) first.
- 403Forbidden403 Forbidden means the server understood the request but refuses to allow it, and logging in again won't change that.
- 404Not Found404 Not Found means the server has nothing at this URL, or won't say whether it does.
- 405Method Not Allowed405 Method Not Allowed means the URL exists but doesn't accept this HTTP method, such as a POST to a read-only page.
- 408Request Timeout408 Request Timeout means the server gave up waiting for the client to finish sending its request.
- 410Gone410 Gone means the resource was deliberately removed and won't come back.
- 429Too Many Requests429 Too Many Requests means the client sent too many requests in a given time and is being rate limited.
5xx server errors
The server, or something behind it, failed.
- 500Internal Server Error500 Internal Server Error means the server hit an unexpected condition and couldn't complete the request; the problem is on the server's side.
- 502Bad Gateway502 Bad Gateway means a proxy or gateway got an invalid response, or no usable response, from the upstream server behind it.
- 503Service Unavailable503 Service Unavailable means the server can't handle the request right now, because it's overloaded or down for maintenance.
- 504Gateway Timeout504 Gateway Timeout means a proxy or gateway didn't get a response from the upstream server in time.
- 521Web Server Is Down (Cloudflare)521 is a Cloudflare error: Cloudflare couldn't connect to the site's origin server because the origin refused the connection.
- 522Connection Timed Out (Cloudflare)522 is a Cloudflare error: Cloudflare's connection to the origin server timed out before it was established.
- 524A Timeout Occurred (Cloudflare)524 is a Cloudflare error: Cloudflare connected to the origin, but the origin didn't send an HTTP response within Cloudflare's timeout (100 seconds by default).
Know when your site starts returning errors
Uptime checks, cron job heartbeats and a public status page, with an alert when something breaks. Free: 5 monitors checked every 5 minutes and email alerts. Pro ($9/month): checks every minute, Slack, Discord, Telegram and webhooks, SSL expiry warnings.
- No card required
- Status page included
- Email alerts included