fix(ApiExceptionRenderer): change title for ValidationException response
Update the title for the ValidationException response to accurately reflect the error type.
This commit is contained in:
parent
985fcedb04
commit
b7c5c98128
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue