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