fastapi.generic_error()

fastapi-chameleon’s name and signature for error().

Usage

Source

fastapi.generic_error(
    template_file,
    status_code,
    template_data=None,
)