Source code for auth_middleware.exceptions.user_not_found_error

from fastapi import HTTPException
from starlette.status import HTTP_404_NOT_FOUND


[docs] class UserNotFoundError(HTTPException): """Raised when the requested user does not exist."""
[docs] def __init__(self, detail: str = "User not found") -> None: super().__init__(status_code=HTTP_404_NOT_FOUND, detail=detail)