diff --git a/src/Http/Middleware/AuthenticateApiKey.php b/src/Http/Middleware/AuthenticateApiKey.php index b0f5b1d40..9a1615610 100644 --- a/src/Http/Middleware/AuthenticateApiKey.php +++ b/src/Http/Middleware/AuthenticateApiKey.php @@ -55,8 +55,8 @@ protected function unauthorizedResponse() { return response([ 'error' => [ - 'code' => '401', - 'http_code' => 'GEN-UNAUTHORIZED', + 'code' => 'GEN-UNAUTHORIZED', + 'http_code' => 401, 'message' => 'Unauthorized.', ], ], 401);