Files
CoPay/backend/app/api/auth/exceptions.py
T
2024-11-17 02:31:42 +03:00

8 lines
208 B
Python

import fastapi
credentials_exception = fastapi.HTTPException(
status_code=fastapi.status.HTTP_401_UNAUTHORIZED,
detail='Could not validate credentials',
headers={'WWW-Authenticate': 'Bearer'},
)