Home › Developer Tools › HTTP Status Codes

HTTP Status Codes

Look up any HTTP status code in seconds. Search by number, name or symptom to see what the code means, why it happens, how to fix it and which RFC defines it, including unofficial codes from nginx, Cloudflare, IIS and AWS.

Last updated:

Advertisement
Advertisement

How to use the HTTP Status Codes

  1. Type a status code such as 404 or 503 in the search box and press Look up (or Enter) to jump straight to it.
  2. Search by symptom instead, for example redirect, rate limit, cookie or ssl, to find the codes that match.
  3. Filter by class with the 1xx–5xx tabs, and untick unofficial codes if you only want registered ones.
  4. Click a code to expand its meaning, common causes and fixes, spec reference and an example status line.
  5. Download CSV or JSON to reuse the list in documentation, tests or a spreadsheet.

The five classes of HTTP status codes

ClassMeaningMost common codes
1xx InformationalInterim response; the request is still in progress100 Continue, 101 Switching Protocols, 103 Early Hints
2xx SuccessThe request was received, understood and accepted200 OK, 201 Created, 204 No Content, 206 Partial Content
3xx RedirectionFurther action, usually following a Location header, is needed301, 302, 304 Not Modified, 307, 308
4xx Client errorThe request is wrong or not allowed400, 401, 403, 404, 409, 422, 429
5xx Server errorThe server failed to fulfill a valid request500, 502, 503, 504

The first digit is all a client strictly needs: RFC 9110 says that an unrecognized code is treated as the x00 code of its class, so an unknown 471 is handled like 400 Bad Request.

Redirect codes compared

CodePermanent?Keeps method and body?Typical use
301 Moved PermanentlyYesNo (POST may become GET)Domain moves, HTTP to HTTPS, renamed pages
302 FoundNoNo (POST may become GET)Temporary redirects, login flows
303 See OtherNoNo, always GETAfter a form submission (Post/Redirect/Get)
307 Temporary RedirectNoYesTemporary moves of API endpoints
308 Permanent RedirectYesYesPermanent moves of API endpoints and form targets

Status codes for REST APIs

A consistent API uses a small, predictable set of codes. A good default mapping:

OperationSuccessTypical errors
GET /items/42200 OK (304 if unchanged)404 if the item does not exist
POST /items201 Created with a Location header400 malformed JSON, 422 validation failed, 409 duplicate
PUT or PATCH /items/42200 OK with the item, or 204 No Content412 if If-Match fails, 404, 422
DELETE /items/42204 No Content404, or 409 if other records depend on it
Long-running job202 Accepted plus a status URL429 rate limit, 503 overloaded
Any endpoint–401 missing or expired token, 403 not permitted, 500 bug

Tip: always return an error body explaining the problem (for example the application/problem+json format from RFC 9457) and never send 200 OK with an error message inside. Monitoring, caches, retries and search engines all rely on the status code.

Frequently asked questions

What does a 404 error mean?

404 Not Found means the server could not find anything at the requested URL. The link may be mistyped, the page may have moved without a redirect, or it may have been deleted. Fix broken links, add 301 redirects for moved pages, or return 410 Gone if the page was removed on purpose.

What is the difference between 401 and 403?

401 Unauthorized means you are not authenticated: log in or send valid credentials and the request may succeed. 403 Forbidden means the server knows who you are (or does not care) and still refuses; logging in again will not help.

Should I use a 301 or a 302 redirect?

Use 301 (or 308) when a page has moved permanently, such as after a site migration; search engines transfer ranking signals to the new URL. Use 302 (or 307) for temporary moves where the original URL should keep its place in search results. 307 and 308 also guarantee the HTTP method is not changed.

What causes a 502 Bad Gateway error?

A proxy, load balancer or CDN in front of the website got an invalid response from the server behind it. Usually the application crashed, was restarted, or closed the connection. Visitors can retry after a minute; site owners should check the upstream application's logs.

Are codes like 499, 520 or 444 real HTTP status codes?

They are unofficial. They are not in the IANA registry but are used by specific software: 444 and 499 by nginx, 520 to 527 by Cloudflare, 440 and 449 by Microsoft IIS. The tool marks them as unofficial and names the source.

Which status codes are cached by default?

RFC 9110 lists 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501 as heuristically cacheable, meaning caches may store them even without explicit freshness headers. Every other code is cached only if Cache-Control or Expires headers allow it.

What happens if a server sends a code that is not registered?

Clients treat it like the x00 code of its class. A client receiving 299 handles it as 200 OK, and an unknown 4xx code is handled as 400 Bad Request. Type any three-digit code to see this explained.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Website Down CheckerCheck if a website is down for everyone.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.User Agent ParserSee your user agent and parse any UA string into browser, OS, engine and device.API Request TesterSend GET, POST, PUT and DELETE requests with headers and a body, then inspect the response.Basic Auth Header GeneratorCreate an Authorization: Basic header from a username and password, or decode one.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Am I Connected to the InternetCheck if your internet really works: tests several servers, latency and captive Wi-Fi portals.Email ValidatorCheck email lists and spot disposable addresses.Deep Link GeneratorCreate links that open directly in apps.Subnet CalculatorCalculate IPv4 network, broadcast, host range, masks and host count, and split subnets.Bulk URL OpenerOpen a list of URLs in new tabs at once or in batches, with cleanup, dedupe and delay.DNS LookupLook up A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records with TTLs over secure DNS.WebSocket TesterConnect to a ws:// or wss:// server, send messages and watch a timestamped live log.WHOIS LookupLook up who registered a domain or IP: registrar, creation and expiry dates, name servers, status.Mailto Link GeneratorBuild encoded mailto: links with cc, bcc, subject and body, plus HTML code and a QR code.WhatsApp Link GeneratorCreate wa.me click-to-chat links with a pre-filled message, button HTML and a QR code.Common Ports ListSearchable TCP/UDP port number list with service, protocol and description, filterable by range.DMARC CheckerLook up a domain's DMARC record, explain every tag, grade the policy and get fix suggestions.DMARC Record GeneratorCreate a DMARC TXT record with policy, reporting and alignment options, every tag explained.Email Header AnalyzerPaste raw email headers to trace every server hop, see delays and check SPF, DKIM and DMARC.IP Geolocation LookupFind the country, city, ISP, ASN and time zone of any IP address or domain, with a map.Reverse DNS LookupFind the PTR hostname of any IPv4 or IPv6 address, one at a time or hundreds in bulk.SPF Record CheckerLook up a domain's SPF record, count nested DNS lookups, find errors and test a sender IP.SPF Record GeneratorBuild a valid SPF TXT record from mail providers, IPs and includes, with a lookup-count check.CIDR to IP RangeConvert IPv4 or IPv6 CIDR blocks to first/last IP, mask and host count, and export IP lists.DNS Propagation CheckerCompare DNS answers and TTLs from Cloudflare, Google, Quad9, AdGuard and NextDNS side by side.Domain Availability CheckerCheck if domain names are available across .com, .io, .ai and more, with registrar and expiry.MAC Address LookupFind the vendor of a MAC address or OUI, check multicast and random bits, look up many at once.MX LookupFind a domain's mail servers: MX priority, host, IP addresses and the email provider.Uptime SLA CalculatorTurn 99.9% uptime into allowed downtime per day, month and year, or downtime into uptime %.Website Speed TestTest page speed with Lighthouse: performance score, Core Web Vitals and fixes, mobile or desktop.ASN LookupLook up an AS number or IP: network owner, country, registry, abuse contact and announced prefixes.Bandwidth CalculatorEstimate monthly website bandwidth (GB) and the Mbps you need from page views and page size.CNAME LookupFollow a hostname's full CNAME chain to its final IP addresses, with TTLs and CDN detection.CORS TesterSend GET, POST or OPTIONS from your browser to any API and see whether CORS allows it and why not.DKIM Record CheckerLook up a domain's DKIM key by selector (or auto-detect), check key type, bit length and tags.DKIM Record GeneratorCreate a DKIM RSA key pair in your browser with the TXT record, selector host and private key PEM.NS LookupFind a domain's authoritative nameservers with their IPs, SOA record and DNS hosting provider.Social Share Link GeneratorMake share links and buttons for Facebook, X, LinkedIn, Reddit, Pinterest, WhatsApp and email.Subnet Mask Cheat SheetInteractive /0 to /32 table of subnet masks, wildcards and host counts with details per prefix.TXT Record LookupLook up a domain’s DNS TXT records and see which are SPF, DMARC, DKIM or verification tokens.VLSM CalculatorSplit a network into variable-length subnets sized to the hosts each one needs.YouTube Timestamp Link GeneratorMake YouTube links that start at a set time, embed start/end codes and lists of timestamps.DMARC Report AnalyzerRead DMARC aggregate XML reports (.xml, .gz, .zip): sources, SPF/DKIM alignment and pass rates.Domain Age CheckerSee how old a domain is, when it was registered and when it expires. Bulk check up to 50.Email Deliverability CheckerGrade a domain's MX, SPF, DMARC, DKIM, BIMI and MTA-STS records in one report with fixes.Email ObfuscatorHide an email address from spam bots with HTML entities, a JavaScript mailto link or reversed CSS text.Email PermutatorGenerate every common business email format from a first name, last name and company domain.HTTP Header ParserPaste raw HTTP headers to get a table explaining each one plus a security headers grade.IP Blacklist CheckerCheck an IPv4 address against 21 public spam blocklists (DNSBLs) and see listed or clean.IP Range to CIDRTurn a start and end IP into the shortest list of CIDR blocks, for IPv4 and IPv6.IPv6 Subnet CalculatorIPv6 prefix to network, range, address count and /64s, and split it into child subnets.Link in Bio Page GeneratorCreate a link-in-bio page with avatar, bio, links and theme, then download it as one HTML file.
See all 52 Network, DNS & Email Tools →