Skip to content

Custom error parsing #6

@kevinrenskers

Description

@kevinrenskers

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions