from fastapi import APIRouter from campaigns.api import schemas from campaigns.api.errors import ERRORS from campaigns.core.exceptions import Error router = APIRouter(tags=["errors"]) @router.get("/errors", response_model=list[schemas.Error]) async def get_errors() -> list[Error]: return ERRORS