You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason it is useful to return the proper code is that it enables better handling of the response - trying to insert something unprocessable should maybe trigger a manual review (i.e. when inserting a carrier bound to an account, the account does not exist) whereas inserting a duplicate entry does not require that, and automated flows benefit from this distinction.
jambonz-api-server/lib/routes/api/error.js
Lines 16 to 18 in d33d0aa
When trying to create a resource that already exists, the code returned is 422 (unprocessable resource) when it should return a 409 (conflict).
The text was updated successfully, but these errors were encountered: