from fastapi import HTTPException, status


class ApiError(HTTPException):
    def __init__(self, error: str, message: str, status_code: int = status.HTTP_400_BAD_REQUEST) -> None:
        super().__init__(status_code=status_code, detail={"error": error, "message": message})
