From d870a2068a139072ba6bf21fc7f743dada7354b1 Mon Sep 17 00:00:00 2001 From: sebzap Date: Mon, 2 Sep 2019 10:39:36 +0200 Subject: [PATCH] fixed unauthorizedResponse --- src/Http/Middleware/AuthenticateApiKey.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);