mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
17 lines
426 B
Python
17 lines
426 B
Python
from fastapi import HTTPException, status
|
|
|
|
CredentialsException = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Incorrect username or password",
|
|
)
|
|
|
|
AuthenticationSchemeException = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Invalid authentication scheme",
|
|
)
|
|
|
|
DisabledException = HTTPException(
|
|
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
detail="Disabled user",
|
|
)
|