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

Feature/http error codes #9

Merged
merged 5 commits into from
Feb 19, 2024

Conversation

Peter-B-
Copy link
Contributor

Hi Fede,

this PR adds http status codes 400, 404 and 409 when parameters are invalid, a DB does not exist, or a DB already exists respectively.

I use a pretty generic IExceptionHandler to set the status code.

What do you think?

Kind regards
Peter

@fbarresi
Copy link
Owner

Great idea, Tanks Peter!

@fbarresi fbarresi merged commit dc31f3c into fbarresi:master Feb 19, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants