Glossary

HTTP status code defined.

An HTTP status code is the three-digit number a server returns with every response to say what happened with the request, from success to redirect to error.

Definition

How HTTP status codes work

Every HTTP response opens with a status code, a three-digit number grouped by its first digit. 2xx means success, 3xx means the client should go somewhere else, 4xx means the request was wrong, and 5xx means the server broke. So 200 is a plain OK, 303 tells the browser to redirect to a thank-you page, 422 says the submitted data failed validation, and 429 says you're sending too fast.

For a form, the status code is how the endpoint answers your POST. A browser handles some codes on its own: it follows a 3xx to the next page automatically, which is exactly how a form redirect works. A fetch call, though, has to read the code itself, branching on it to show a success message or surface the error. That's why a good form backend returns honest, specific codes rather than a blanket 200. FormWire replies with a 2xx when a submission lands, a 3xx when you've configured a redirect, and a 4xx with a JSON explanation when validation fails, so both plain HTML forms and scripted ones know precisely what happened.

Related questions

Want to see it working?

Read the docs
Ready in a minute

Get honest status codes on every submission.

Free tier forever. No credit card required.