File tree 1 file changed +4
-4
lines changed
aws_lambda_powertools/event_handler
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,25 +21,25 @@ class BadRequestError(ServiceError):
21
21
"""Bad Request Error"""
22
22
23
23
def __init__ (self , msg : str ):
24
- super ().__init__ (HTTPStatus .BAD_REQUEST . value , msg )
24
+ super ().__init__ (HTTPStatus .BAD_REQUEST , msg )
25
25
26
26
27
27
class UnauthorizedError (ServiceError ):
28
28
"""Unauthorized Error"""
29
29
30
30
def __init__ (self , msg : str ):
31
- super ().__init__ (HTTPStatus .UNAUTHORIZED . value , msg )
31
+ super ().__init__ (HTTPStatus .UNAUTHORIZED , msg )
32
32
33
33
34
34
class NotFoundError (ServiceError ):
35
35
"""Not Found Error"""
36
36
37
37
def __init__ (self , msg : str = "Not found" ):
38
- super ().__init__ (HTTPStatus .NOT_FOUND . value , msg )
38
+ super ().__init__ (HTTPStatus .NOT_FOUND , msg )
39
39
40
40
41
41
class InternalServerError (ServiceError ):
42
42
"""Internal Server Error"""
43
43
44
44
def __init__ (self , message : str ):
45
- super ().__init__ (HTTPStatus .INTERNAL_SERVER_ERROR . value , message )
45
+ super ().__init__ (HTTPStatus .INTERNAL_SERVER_ERROR , message )
You can’t perform that action at this time.
0 commit comments