nightly - 2025-09-20
This commit is contained in:
9
api/exceptions.py
Normal file
9
api/exceptions.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from fastapi import HTTPException, status
|
||||
|
||||
bad_key = HTTPException(
|
||||
status_code=status.HTTP_401_UNAUTHORIZED, detail="API Key is bad, very bad."
|
||||
)
|
||||
|
||||
not_found = HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND, detail="Resource not found."
|
||||
)
|
||||
Reference in New Issue
Block a user