From f1b79fdbc06c0e893796727978e29a89f5c7d682 Mon Sep 17 00:00:00 2001 From: KJ Date: Sat, 25 May 2024 17:41:33 -0400 Subject: [PATCH] Add http code 422 on verification failed. --- src/Libs/Request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Libs/Request.php b/src/Libs/Request.php index 98eb0c0..204cd41 100644 --- a/src/Libs/Request.php +++ b/src/Libs/Request.php @@ -115,6 +115,7 @@ class Request extends Neuron { */ protected function onInvalid(string $error): mixed { + http_response_code(422); print($error); return null; }