jhrcook/coffee-counter-api

Incorrect status codes returned

Closed this issue · 2 comments

If a bad request is made to /new_use/{bag_id}?..., the status code returned is still 200, but the response is just 400.

FastAPI - Handling Errors

Same for deactivating a bag. I need to revisit the documentation from FastAPI to see how to do it properly.

See the example here.