tatey / trace_privately

A robust and fully featured key server for the TracePrivately iOS app
https://trace-privately-demo.herokuapp.com
MIT License
1 stars 0 forks source link

API responds with 400 for bad requests #22

Open tatey opened 4 years ago

tatey commented 4 years ago

Right now we're just letting Rails do its default which probably means it returns 400, 422, 404, and 500 as HTML. The iOS app expects a JSON payload. This should make sure we set the right status code and return the right JSON payload.

See https://github.com/CrunchyBagel/TracePrivately/pull/44.

tatey commented 4 years ago

Server can also respond with 429, 500, and 503.