Open ptitpoulpe opened 3 years ago
Currently, if an endpoint raised a HTTPNotFound exception it’s catched (see here), so you cannot have custom HTTPNotFound exception.
HTTPNotFound
Pass the exception to not_found handlers so they can use the raised HTTPNotFound exception to generate not found message.
not_found
Issue
Currently, if an endpoint raised a
HTTPNotFound
exception it’s catched (see here), so you cannot have customHTTPNotFound
exception.Solution
Pass the exception to
not_found
handlers so they can use the raisedHTTPNotFound
exception to generate not found message.