Open tatey opened 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.
Server can also respond with 429, 500, and 503.
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.