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

View File

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