Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Treat 422 from Core as an error #22

Open
ptere opened this issue Feb 28, 2019 · 0 comments
Open

Treat 422 from Core as an error #22

ptere opened this issue Feb 28, 2019 · 0 comments

Comments

@ptere
Copy link

ptere commented Feb 28, 2019

Continuing the work in #21, we should consider a 422 Unprocessable Entity message from Core to be an error. We already do this if the reply from Core matches a certain format, but we should do it in the general case as well.

Change will likely target this function:

defp unprocessable(body = ~s[{"errors":] <> _rest), do: error_response(body)
defp unprocessable(body), do: ok_response(body)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant