Add http code 422 on verification failed.

This commit is contained in:
KJ 2024-05-25 17:41:33 -04:00
parent 406f9a10a1
commit f1b79fdbc0
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class Request extends Neuron {
*/ */
protected function onInvalid(string $error): mixed protected function onInvalid(string $error): mixed
{ {
http_response_code(422);
print($error); print($error);
return null; return null;
} }