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