We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a53aed commit e4cc4b5Copy full SHA for e4cc4b5
cycode/cli/exceptions/custom_exceptions.py
@@ -47,12 +47,9 @@ class ReportAsyncError(CycodeError):
47
pass
48
49
50
-class HttpUnauthorizedError(RequestError):
+class HttpUnauthorizedError(RequestHttpError):
51
def __init__(self, error_message: str, response: Response) -> None:
52
- self.status_code = 401
53
- self.error_message = error_message
54
- self.response = response
55
- super().__init__(self.error_message)
+ super().__init__(401, error_message, response)
56
57
def __str__(self) -> str:
58
return f'HTTP unauthorized error occurred during the request. Message: {self.error_message}'
0 commit comments