abort
Raise an :exc:~werkzeug.exceptions.HTTPException for the given status code.
def abort(
code: int | BaseResponse,
args: t.Any,
kwargs: t.Any
) - > t.NoReturn
Raise an :exc:~werkzeug.exceptions.HTTPException for the given status code. If :data:~flask.current_app is available, it will call its :attr:~flask.Flask.aborter object, otherwise it will use :func:werkzeug.exceptions.abort.
Parameters
| Name | Type | Description |
|---|---|---|
| code | `int | BaseResponse` |
| args | t.Any | Passed to the exception. |
| kwargs | t.Any | Passed to the exception. |
Returns
| Type | Description |
|---|---|
t.NoReturn |