From 29ea47289fa106061091b16d65e523374d091b79 Mon Sep 17 00:00:00 2001 From: Alex Ermashev Date: Mon, 26 Oct 2020 12:15:20 +0600 Subject: [PATCH] Update AbstractResponse.php --- src/AbstractResponse.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AbstractResponse.php b/src/AbstractResponse.php index edae4d2..2ea50ea 100644 --- a/src/AbstractResponse.php +++ b/src/AbstractResponse.php @@ -17,8 +17,10 @@ class AbstractResponse const RESPONSE_OK = 200; const RESPONSE_CREATED = 201; const RESPONSE_NO_CONTENT = 204; - const RESPONSE_NOT_FOUND = 404; const RESPONSE_BAD_REQUEST = 400; + const RESPONSE_UNAUTHORIZED = 401; + const RESPONSE_NOT_FOUND = 404; + const RESPONSE_NOT_ALLOWED = 405; const RESPONSE_CONFLICT = 409; const RESPONSE_INTERNAL_ERROR = 500; @@ -94,4 +96,4 @@ public function getResponseForDisplaying() : $this->response; } -} \ No newline at end of file +}