How to use
- Type a code or a word, for example 502 or redirect, into the search box.
- Or filter by class — informational, success, redirection, client error or server error.
- Link to a specific code by adding its number to the page address, for example
Options explained
- Classes
- 1xx informational, 2xx success, 3xx redirection, 4xx client errors (a problem with the request) and 5xx server errors (a problem on the server).
- Non-standard
- Codes such as Nginx 499 and Cloudflare 520–524 are not in any RFC but appear often in logs.
Choosing a redirect code
The five redirect codes in RFC 9110 differ in two ways: whether the move is permanent, and whether the client may change the request method when it follows the redirect.
| Code | Meaning | Permanent | Method after redirect |
|---|---|---|---|
| 301 | Moved Permanently | Yes | May change from POST to GET |
| 302 | Found | No | May change from POST to GET |
| 303 | See Other | No | Always becomes GET |
| 307 | Temporary Redirect | No | Must stay the same |
| 308 | Permanent Redirect | Yes | Must stay the same |
For a normal page move or an HTTP to HTTPS redirect, 301 is the usual choice. Use 308 or 307 when a POST request, for example a form or an API call, must reach the new address unchanged. Use 303 after a successful form submission to send the browser to a result page that it fetches with GET.
Frequently asked questions
What is the difference between 301 and 302?
301 is a permanent move — browsers and search engines update to the new URL. 302 is temporary. Use 308 or 307 if the request method and body must not change.
What is the difference between 401 and 403?
401 means you are not authenticated — log in and try again. 403 means you are authenticated or identified but not allowed; logging in again will not help.
What does 502 Bad Gateway mean?
A proxy or load balancer could not get a valid response from the application behind it, usually because the application crashed, is restarting or is not listening.
Privacy
This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.