@@ -42,10 +42,10 @@ public function render(): JsonResponse
4242
4343 return response ()->json (
4444 [
45- 'error ' => [
46- 'code ' => $ this ->statusCode ,
47- 'message ' => $ this ->statusMessage ,
48- ], ],
45+ 'error ' => [
46+ 'code ' => $ this ->statusCode ,
47+ 'message ' => $ this ->statusMessage ,
48+ ], ],
4949 $ this ->responseCode
5050 );
5151 }
@@ -54,10 +54,10 @@ public function render(): JsonResponse
5454 case 400 :
5555 return response ()->json (
5656 [
57- 'error ' => [
58- 'code ' => $ this ->statusCode ,
59- 'message ' => 'Unprocessable Entity ' ,
60- ], ],
57+ 'error ' => [
58+ 'code ' => $ this ->statusCode ,
59+ 'message ' => 'Unprocessable Entity ' ,
60+ ], ],
6161 $ this ->responseCode
6262 );
6363 case 401 :
@@ -81,28 +81,28 @@ public function render(): JsonResponse
8181 case 404 :
8282 return response ()->json (
8383 [
84- 'error ' => [
85- 'code ' => $ this ->statusCode ,
86- 'message ' => 'Not Found ' ,
87- ], ],
84+ 'error ' => [
85+ 'code ' => $ this ->statusCode ,
86+ 'message ' => 'Not Found ' ,
87+ ], ],
8888 $ this ->responseCode
8989 );
9090 case 405 :
9191 return response ()->json (
9292 [
93- 'error ' => [
94- 'code ' => $ this ->statusCode ,
95- 'message ' => 'Method Not Allowed ' ,
96- ], ],
93+ 'error ' => [
94+ 'code ' => $ this ->statusCode ,
95+ 'message ' => 'Method Not Allowed ' ,
96+ ], ],
9797 $ this ->responseCode
9898 );
9999 default :
100100 return response ()->json (
101101 [
102- 'error ' => [
103- 'code ' => $ this ->statusCode ,
104- 'message ' => 'Internal Server Error ' ,
105- ], ],
102+ 'error ' => [
103+ 'code ' => $ this ->statusCode ,
104+ 'message ' => 'Internal Server Error ' ,
105+ ], ],
106106 500
107107 );
108108 }
0 commit comments