app.core.errors

Module Contents

Functions

http_error_handler(request: starlette.requests.Request, exc: starlette.exceptions.HTTPException) → starlette.responses.JSONResponse

http_422_error_handler(request: starlette.requests.Request, exc: starlette.exceptions.HTTPException) → starlette.responses.JSONResponse

Handler for 422 error to transform default pydantic error object to gothinkster format

async app.core.errors.http_error_handler(request: starlette.requests.Request, exc: starlette.exceptions.HTTPException) starlette.responses.JSONResponse
async app.core.errors.http_422_error_handler(request: starlette.requests.Request, exc: starlette.exceptions.HTTPException) starlette.responses.JSONResponse

Handler for 422 error to transform default pydantic error object to gothinkster format