Skip to content
Developer Runs offline

HTTP Status Code Lookup

Look up any HTTP status code and what it actually means.

Input

0 chars

Output

0 chars
Ctrl

Questions

When should I use 301 versus 302?

301 means the resource has permanently moved: clients and search engines update their records and may cache the redirect indefinitely. 302 means temporarily moved and should not be cached. If you are unsure, 302 is the safer mistake, because a wrongly cached 301 is very hard to undo.

What is the difference between 401 and 403?

401 Unauthorized means authentication is missing or invalid: try again with credentials. 403 Forbidden means the server knows who you are and you still may not do this. The names are historically confusing; 401 really means unauthenticated.

Should an API return 200 with an error in the body?

No. The status code is the machine-readable outcome and clients, proxies and monitoring all depend on it. Returning 200 for a failure hides errors from every layer of tooling. Use the status code for the outcome and the body for the detail.

Open User Agent Parser

User Agent Parser

Break a User-Agent string into browser, engine, OS and device.

Developer