mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-04 10:42:58 +08:00
13 lines
302 B
Python
13 lines
302 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
|