422 response with a structured error object that tells you exactly which fields failed and why.
Available Validators
Validation Error Response
When one or more validation rules fail, formcarry responds with HTTP 422 and a JSON body:errors object is keyed by field name, making it straightforward to map each error back to the corresponding input in your form.
Displaying Errors in Your Form
You can use theform-error CSS class (or any class of your choosing) to visually highlight inputs that failed validation. The following examples show how to parse the errors object and apply the class to the matching form elements.
Styling Error Inputs
Add a CSS rule for.form-error to give users a clear visual signal that a field needs attention: