A signup endpoint should distinguish new records, invalid input, duplicates, wrong methods and server failures so visitors see useful messages.
Key takeaways
- Test each response case before release.
- Document how duplicate addresses are handled.
- Check visitor messages, stored records and logs together.
- Confirm that retries do not create duplicate records.
Why status codes matter for a signup form
When someone clicks "Join" on your signup form, the browser sends a request to an endpoint on your server. That endpoint answers with a status code, a three-digit number that says in short what happened. The front end reads that number first, and it decides whether the visitor sees a thank-you message, an error next to a field, or a vague failure screen.
Most growth leads never look at these codes. They see the results: a conversion rate that dropped after a release, a spike in support emails from people who are sure they filled in the form correctly, or a list of sign-ups that contains the same address five times. Many of those problems start with an endpoint that answers in a way nobody briefed the front end to expect.
This post covers five response cases to test on a signup endpoint. For each one, it explains what the response means in plain terms and what to ask your developers to confirm. It is not a full HTTP tutorial, and you do not need to memorize the standard. You need a shared checklist so the team can test the form and agree on what "working" means.
The meanings come from the HTTP semantics standard, RFC 9110. Where this post uses wording from that document, it links to it.
Use the confirmation lists as they are, or trim them to fit your stack. The goal is not to hand developers a spec you do not understand. It is to make sure the whole team uses one set of words when it talks about a failed sign-up.
1. 201 Created: the signup was stored
The most useful success code for a signup form is 201 Created. It tells the browser that the server accepted the request and made something new, which in this case is a subscriber record or an account.
Many teams send a generic 200 OK for every good result. That works for the visitor, but it makes monitoring harder. If a new sign-up and an edited profile both return the same success code, that code alone cannot show you how many people actually joined. A distinct code gives you a cleaner number to report.
RFC 9110 says, "The 201 response content typically describes and links to the resource(s)". In practice, the response can point to the new record and give the front end what it needs to show a confirmation, so the thank-you page does not have to guess what happened.
Ask your developers to confirm:
- A successful new signup returns 201 Created, and an update to an existing record does not.
- The response includes enough detail for the front end to show a confirmation message.
- A repeated submission from the same person is handled on purpose. It should not quietly create a second record.
2. 400 Bad request: the input was not acceptable
A 400 means the endpoint received a request it will not process because the request itself is wrong. Common examples are a malformed email address, a required field left blank, or a payload that does not match what the endpoint expects. The fix usually belongs to the form or to the visitor, so the response should say what went wrong.
RFC 9110 states, "An origin server SHOULD respond with a 400 (Bad Request)". The word SHOULD matters here. It is a recommendation, not a loose suggestion, and it gives your team a common baseline to test against.
Many forms fail badly on this code. The endpoint returns a 200 with an error message buried in the body, or it returns a server-error response because it crashed while reading bad input. A 200 hiding an error can inflate the success count; a server-error response can hide the input problem from the visitor.
Ask your developers to confirm:
- Validation failures return 400, not a success code and not a server error.
- The response gives a reason specific enough for the front end to place the message next to the right field.
- Error messages do not expose internal details such as database fields, stack traces, or server names.
3. A conflict with an existing address: the person may already be signed up
Some signup flows need to handle an email address that already exists. The visitor might have joined last year, or might have typed an address that another person registered first. The endpoint needs a clear answer for that case, and a conflict response is a common choice because it describes a request that clashes with the current state of the server.
There is a real design decision here, and it belongs in the brief rather than being left to whoever writes the code. One option is to return a conflict response and show a message such as "This address is already registered." That is clear for the visitor, but it also tells anyone who tries the form which addresses have accounts. Another option is to return the same neutral message for new and existing addresses, and send the real account email to the owner. That protects privacy, but it changes what your analytics can count.
Whichever path your team chooses, it should be written down. Ask your developers to confirm:
- Duplicate addresses are handled in a way the team has chosen on purpose, and the choice is documented.
- The response does not reveal more than the team has agreed to reveal.
- A duplicate attempt is counted separately from a new sign-up in reporting, so the numbers stay honest.
4. The wrong request method: the form is sending the wrong request
A wrong-method response means the URL exists, but it does not accept the kind of request the form sent. A form that sends a GET request to an endpoint built for POST is one example. Another is an endpoint that was moved during a site update, where the old address still responds but only for certain methods.
This response is easy to miss in testing because the page still loads and the form still looks normal. The visitor clicks the button, nothing is stored, and the front end may show nothing useful at all. Because the problem sits between the form and the endpoint, it often appears only after a release or a change to the hosting setup.
A useful habit is to test the form from a clean browser session after each release. Submit it exactly as a visitor would, then check the network response in the browser's developer tools. Growth leads can do this too. The network panel shows the status code next to each request, so a non-developer can confirm whether the form returns the code the brief promised.
Ask your developers to confirm:
- The form's method matches what the endpoint accepts, and this is part of the release checklist.
- A wrong-method response is logged and triggers an alert, so a broken form is noticed the same day.
- After any URL change, the old address is either redirected deliberately or retired, rather than left in a half-working state.
5. A server-side failure: something broke on our side
A server-error response means the server ran into a problem it could not handle, and the visitor did nothing wrong. A database that is down, a third-party service that timed out, or a bug in new code can all produce this response. For a growth team, it is one of the responses that can cost sign-ups most directly, because the visitor usually leaves.
The main risk is not the failure itself. It is what happens next. If the visitor sees a generic error and clicks the button again, the endpoint may store the same signup twice, or store part of it and fail on the rest. A good design makes retries safe, so repeating a request does not create a mess.
Monitoring is where server-error responses either become visible or stay hidden. A single error in an hour may not matter, but a steady climb usually means a release, a dependency, or a change in traffic has broken something. Ask for a simple chart of signup attempts split by status code. Then the growth team can see the failure rate as a share of traffic, rather than a raw count that rises whenever the audience grows.
Ask your developers to confirm:
- Every server-error response is logged with a request identifier, so a support email can be matched to a specific failure.
- Alerts fire when the rate of server-error responses rises, not only when the site is fully down.
- The front end shows a plain message that invites the visitor to try again, and it does not claim the sign-up succeeded.
- Retrying the same submission does not create duplicate records.
For related checks, see signup api errors before retry and prevent duplicate welcome emails.
A note on 505 and other codes you can mostly ignore
Not every status code belongs on a signup checklist. The standard lists many of them, and most will never appear in your form's logs. One example is 505 HTTP Version Not Supported. RFC 9110 notes, "A server can send a 505 (HTTP Version Not Supported)". For a signup form, that response is unlikely to be the cause of a lost sign-up, so it does not need its own test. It still belongs in the catch-all group described below, so it is not lost if it does appear.
Still, you should ask developers how unexpected codes are handled. A response that falls outside the five above should be logged and counted in a catch-all group, not silently dropped from reporting. That keeps the dashboard honest when something unusual happens.
How to test the five response cases before launch
Before a new form goes live, or after any change to the endpoint, a short test run should cover each case. You do not need special tools. A developer can send the requests by hand, and a growth lead can watch the results in the dashboard.
Run these checks:
- Submit a valid new address. Confirm the response is 201 Created and the record appears once.
- Submit an invalid address or leave a required field blank. Confirm the response is 400 Bad Request and the message names the problem.
- Submit an address that already exists. Confirm the response matches the duplicate-handling choice your team documented.
- Send the request with the wrong method. Confirm a wrong-method response and an alert. Separately, check that a retired URL follows the deliberate redirect or retirement decision.
- Force a failure in a test environment, such as stopping the database connection. Confirm the response is a server-error response, the visitor sees a retry message, and a retry does not create a duplicate.
Keep the results in a shared document. Each row should record the code returned, what the visitor saw, and whether the record was stored. When something changes later, the same table gives you a fast way to check whether the endpoint still behaves the same.
Run these checks again whenever the endpoint, the form, or the hosting changes. Once the requests are written down, a short run takes minutes, and it catches the problems that are hardest to see from outside, such as a silent 200 or a retry that duplicates a record.
Illustrative example: checking retries
Record the returned responses and what the visitor saw. A higher count means the retry check failed.
What to put in the brief for developers
A brief does not need to be long. It needs to be specific enough that a developer can build to it and a growth lead can check it. Use the checks above as your starting point.
Send this list with the form specification and ask the developer to reply with the test results. A reply that says "it works" is not enough. Ask for the codes they saw, and for proof that each one is logged where your team can find it. Agree on who owns each item and when the list is reviewed, usually after every form change or release.
Your next step
Today, submit a valid new address in a test environment and record the response, visitor message and stored record. Use the signup widget checklist alongside this endpoint check.
Common questions
Does every response case need a distinct code?
No; the duplicate case depends on the team's documented choice. Decide what the visitor should learn before choosing the response.
What should a growth lead request as evidence?
Request the returned code, visitor message, stored-record result and matching log entry for each test. Review them together rather than accepting a general assurance that the form works.