Adds Exception Handlers
This commit is contained in:
@@ -4,5 +4,5 @@ from fastapi import HTTPException, status
|
||||
class FileNotFoundException(HTTPException):
|
||||
def __init__(self, message: str):
|
||||
super().__init__(
|
||||
status.HTTP_400_BAD_REQUEST, detail=message
|
||||
status.HTTP_404_NOT_FOUND, detail=message
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user