22
33
44class ServiceError (Exception ):
5- """Service Error"""
5+ """API Gateway and ALB HTTP Service Error"""
66
77 def __init__ (self , status_code : int , msg : str ):
88 """
@@ -18,28 +18,28 @@ def __init__(self, status_code: int, msg: str):
1818
1919
2020class BadRequestError (ServiceError ):
21- """Bad Request Error"""
21+ """API Gateway and ALB Bad Request Error (400) """
2222
2323 def __init__ (self , msg : str ):
2424 super ().__init__ (HTTPStatus .BAD_REQUEST , msg )
2525
2626
2727class UnauthorizedError (ServiceError ):
28- """Unauthorized Error"""
28+ """API Gateway and ALB Unauthorized Error (401) """
2929
3030 def __init__ (self , msg : str ):
3131 super ().__init__ (HTTPStatus .UNAUTHORIZED , msg )
3232
3333
3434class NotFoundError (ServiceError ):
35- """Not Found Error"""
35+ """API Gateway and ALB Not Found Error (404) """
3636
3737 def __init__ (self , msg : str = "Not found" ):
3838 super ().__init__ (HTTPStatus .NOT_FOUND , msg )
3939
4040
4141class InternalServerError (ServiceError ):
42- """Internal Server Error"""
42+ """API Gateway and ALB Not Found Internal Server Error (500) """
4343
4444 def __init__ (self , message : str ):
4545 super ().__init__ (HTTPStatus .INTERNAL_SERVER_ERROR , message )
0 commit comments