Return multiple field-level issues at once.

Section: Error response body

Validation errors by field

json
json
{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "One or more fields are invalid.",
    "fields": [
      { "name": "email", "code": "INVALID_FORMAT" },
      { "name": "password", "code": "TOO_SHORT" }
    ]
  }
}
Explanation

Returning all field failures reduces trial-and-error for API consumers and form builders.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Error response body
Standard error object
A compact structured error response.
OpenIn sheetjsonsame section
422 Unprocessable Content
Well-formed request but semantic validation failed.
OpenIn sheethttp1 tag match
200 OK
Standard success response with a body.
400 Bad Request
Malformed request syntax or invalid shape.
201 Created
Successful resource creation.
401 Unauthorized
Missing or invalid authentication credentials.