mirror of
https://github.com/rommapp/romm.git
synced 2026-02-19 07:50:57 +01:00
18 lines
431 B
Python
18 lines
431 B
Python
from fastapi import HTTPException, status
|
|
|
|
|
|
credentials_exception = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Incorrect username or password",
|
|
)
|
|
|
|
authentication_scheme_exception = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Invalid authentication scheme",
|
|
)
|
|
|
|
disabled_exception = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Disabled user",
|
|
)
|