Fix APIKeyError status code
This commit is contained in:
parent
595006cb77
commit
5dc419e25f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class ForbiddenError(CustomException):
|
||||||
|
|
||||||
class APIKeyError(CustomException):
|
class APIKeyError(CustomException):
|
||||||
def __init__(self, detail="API key error"):
|
def __init__(self, detail="API key error"):
|
||||||
super().__init__(detail, 401)
|
super().__init__(detail, 400) #! Should be 401
|
||||||
|
|
||||||
|
|
||||||
class FilterError(CustomException):
|
class FilterError(CustomException):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue