fbarresi / SoftPlc

Software plc with docker support
MIT License
120 stars 30 forks source link

Feature/http error codes #9

Closed Peter-B- closed 7 months ago

Peter-B- commented 7 months ago

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 commented 7 months ago

Great idea, Tanks Peter!