Skip to content

dp3.api.internal.response_models

HealthCheckResponse

Bases: BaseModel

Healthcheck endpoint response

SuccessResponse

Bases: BaseModel

Generic success response

ErrorResponse

Bases: BaseModel

Generic error response

RequestValidationError

RequestValidationError(loc, msg)

Bases: HTTPException

HTTP exception wrapper to simplify path and query validation

Source code in dp3/api/internal/response_models.py
def __init__(self, loc, msg):
    super().__init__(422, [{"loc": loc, "msg": msg, "type": "value_error"}])