Skip to main content
When a submission fails, you may want to show a dedicated error page instead of inline messaging. Formbase responds with standard HTTP status codes, so you can redirect based on the response.
1

Submit the form

Use fetch and inspect the response status.
2

Redirect on failure

Include the status code or a reason string to help with debugging.
A 404 response usually means the form ID is invalid. A 500 response often indicates a server or storage configuration issue.