From ad21000b245160260f8611f25dc3f4d7db8ff64d Mon Sep 17 00:00:00 2001 From: "error-domain[bot]" <169592568+error-domain[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 08:12:17 +0000 Subject: [PATCH] fix: change http status for unauthorized --- goerrors/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goerrors/errors.go b/goerrors/errors.go index 0a8dbc2..14b7507 100644 --- a/goerrors/errors.go +++ b/goerrors/errors.go @@ -54,7 +54,7 @@ var ( Title: "InvalidCredentials", Message: "The credentials are invalid. Please check the credentials and try again.", Code: "ERR-008", - HttpStatus: 404, + HttpStatus: 403, } InternalServerError = &CustomError{ Title: "InternalServerError", @@ -90,7 +90,7 @@ var ( Title: "Unauthorized", Message: "The request is unauthorized. Please login to your account.", Code: "ERR-014", - HttpStatus: 208, + HttpStatus: 401, } SubscriptionNotFound = &CustomError{ Title: "SubscriptionNotFound",