Replies: 3 comments 6 replies
-
Another example of unexpected behavior: Status code is 200, but response is:
But my code expect that errors are in the |
Beta Was this translation helpful? Give feedback.
2 replies
-
We're not sure if we should change it by default (as it's quite a big breaking change), currently we think this might be a better solution: contember/contember#398 Thoughts? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, I think this should not return 200:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
API returns 200 even in case of errors, so client needs to handle them differently (not just try catch).
I really am not proud of this code for such simple thing:
Also all errors should be identifiable by some code, so we can easily handle them. E.g. in case of already logged in user it returns generic status code and human readable message only, so I had to do one more request to handle this case.
Beta Was this translation helpful? Give feedback.
All reactions