Add http code 422 on verification failed.
This commit is contained in:
parent
406f9a10a1
commit
f1b79fdbc0
@ -115,6 +115,7 @@ class Request extends Neuron {
|
||||
*/
|
||||
protected function onInvalid(string $error): mixed
|
||||
{
|
||||
http_response_code(422);
|
||||
print($error);
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user