Skip to content

Add exception in not_found router #888

@ptitpoulpe

Description

@ptitpoulpe

Issue

Currently, if an endpoint raised a HTTPNotFound exception it’s catched (see here), so you cannot have custom HTTPNotFound exception.

Solution

Pass the exception to not_found handlers so they can use the raised HTTPNotFound exception to generate not found message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions