Path 1: 24 calls (0.92)

403 (12) 500 (5) 400 (3) 404 (2) 900 (1) Response (1)

() (24)

{} (24)

Forbidden (12) InternalServerError (5) BadRequest (3) NotFound (2) My900Error (1) HTTPException (1)

1def abort(code: int | BaseResponse, *args: t.Any, **kwargs: t.Any) -> t.NoReturn:
2    """Raise an :exc:`~werkzeug.exceptions.HTTPException` for the given
3    status code.
4
5    If :data:`~flask.current_app` is available, it will call its
6    :attr:`~flask.Flask.aborter` object, otherwise it will use
7    :func:`werkzeug.exceptions.abort`.
8
9    :param code: The status code for the exception, which must be
10        registered in ``app.aborter``.
11    :param args: Passed to the exception.
12    :param kwargs: Passed to the exception.
13
14    .. versionadded:: 2.2
15        Calls ``current_app.aborter`` if available instead of always
16        using Werkzeug's default ``abort``.
17    """
18    if current_app:
19        current_app.aborter(code, *args, **kwargs)
20
21    _wz_abort(code, *args, **kwargs)
            

Path 2: 2 calls (0.08)

401 (1) 900 (1)

() (2)

{} (2)

Unauthorized (1) LookupError (1)

1def abort(code: int | BaseResponse, *args: t.Any, **kwargs: t.Any) -> t.NoReturn:
2    """Raise an :exc:`~werkzeug.exceptions.HTTPException` for the given
3    status code.
4
5    If :data:`~flask.current_app` is available, it will call its
6    :attr:`~flask.Flask.aborter` object, otherwise it will use
7    :func:`werkzeug.exceptions.abort`.
8
9    :param code: The status code for the exception, which must be
10        registered in ``app.aborter``.
11    :param args: Passed to the exception.
12    :param kwargs: Passed to the exception.
13
14    .. versionadded:: 2.2
15        Calls ``current_app.aborter`` if available instead of always
16        using Werkzeug's default ``abort``.
17    """
18    if current_app:
19        current_app.aborter(code, *args, **kwargs)
20
21    _wz_abort(code, *args, **kwargs)