Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware to handle Exceptions and return appropriate status code #1352

Closed
iainsproat opened this issue Jan 31, 2023 · 0 comments
Closed

Middleware to handle Exceptions and return appropriate status code #1352

iainsproat opened this issue Jan 31, 2023 · 0 comments
Assignees

Comments

@iainsproat
Copy link
Contributor

iainsproat commented Jan 31, 2023

We currently handle exceptions in multiple different locations. Our HTTP error status codes are returned in an inconsistent manner from multiple different points.
We should standardise error handling through the use of middleware.
We should return appropriate Exceptions, tailored to the underlying cause, which the middleware captures and converts to the appropriate HTTP status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants