hiring_assessment/backend/app/errors/not_authenticated.py
2025-02-19 16:25:48 +01:00

11 lines
227 B
Python

from fastapi import status
from .base_error import BaseError
class NotAuthenticatedError(BaseError):
status_code: int = status.HTTP_401_UNAUTHORIZED
def __init__(self):
super().__init__("Not authenticated")