yt-dlp-bot/api/core/exceptions.py
2022-06-10 23:35:48 +03:00

11 lines
276 B
Python

from fastapi import HTTPException
from starlette import status
class TaskNotFoundHTTPError(HTTPException):
def __init__(self) -> None:
super().__init__(status_code=status.HTTP_404_NOT_FOUND, detail='Task not found')
class TaskServiceError(Exception):
pass