From b7c5c98128d9fdf86bbbab624e223072f531dad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 13 Aug 2026 12:26:56 +0200 Subject: [PATCH] fix(ApiExceptionRenderer): change title for ValidationException response Update the title for the ValidationException response to accurately reflect the error type. --- src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php b/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php index 1dcf2fa..73cef45 100644 --- a/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php +++ b/src/Presentation/Api/V1/Exceptions/ApiExceptionRenderer.php @@ -34,7 +34,7 @@ final readonly class ApiExceptionRenderer $e instanceof ValidationException => response()->json([ 'type' => (string) $baseUri->withPath('/errors/400'), - 'title' => 'Unprocessable Entity', + 'title' => 'Bad Request', 'status' => 400, 'detail' => $e->getMessage(), 'invalidParams' => array_values(array_map(