Skip to main content

Module errors

Module errors 

Source
Expand description

What comes back when validation fails.

Laravel answers a failed validation with 422 and a body of {"message": "...", "errors": {"email": ["..."]}}. Every JavaScript client written against a Laravel API already knows that shape, so Rustlavel emits it verbatim rather than inventing a fourth error envelope.

Structsยง

Errors
The messages a failed validation produced, grouped by field.