My API behaves so that when the user tries to login and it fails, the error is given as a JSON body in the response like this:
{"non_field_errors":["Unable to log in with provided credentials."]}
Sadly all that I get back from CodyFire is "Something went wrong..." from here, since the error response doesn't contain a message property and it's not an array.
Would it be possible to simply give the entire JSON response back to the error? Or that I can override the error handling logic on a per-request basis?
My API behaves so that when the user tries to login and it fails, the error is given as a JSON body in the response like this:
{"non_field_errors":["Unable to log in with provided credentials."]}Sadly all that I get back from CodyFire is "Something went wrong..." from here, since the error response doesn't contain a
messageproperty and it's not an array.Would it be possible to simply give the entire JSON response back to the error? Or that I can override the error handling logic on a per-request basis?