Catch the possible exceptions that can occur in the middleware and reraise the corresponding distribution of the HTTPException based on the situation. Also, update the "Error handling" section of the documentation and add missing tests.
All Submissions:
[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes to Core Features:
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you updated the documentation related to the changes you have made?
[x] Have you written new tests for your core changes, as applicable?
[x] Have you successfully run tests with your changes locally?
Motivation:
Catch the possible exceptions that can occur in the middleware and reraise the corresponding distribution of the
HTTPException
based on the situation. Also, update the "Error handling" section of the documentation and add missing tests.All Submissions:
Changes to Core Features: