Exceptions¶
HTTPException¶
-
class
baize.exceptions.
HTTPException
(status_code: int = 400, headers: Optional[Mapping[str, str]] = None, content: Optional[T] = None)¶ Base HTTP Exception
abort¶
-
baize.exceptions.
abort
(status_code: int = 400, headers: Optional[Mapping[str, str]] = None, content: Optional[Any] = None) → NoReturn¶ raise a
HTTPException
. Parameters are completely consistent withHTTPException
.