400 responses inconsistent when registering

The httpresponse from Auth0 sends an inconsistent response json.
In the case of user already registered for example i receive a 400 bad request.
And the content is in this format:

  • name
  • code
  • description
  • statusCode

However in the case of badly formatted email address i receive a 400 bad request
but the content is in this format:

  • error
  • error_description

That seams counter-intuitive and i cannot de-serialize the information into an object as i don’t know which one it will be, as both a 400 responses.

Is this intentional? and is there a list of possible content formats for the different not successful status codes? as it stands it appears a bit of a guessing game at how the error will be reported to me.

Hey there @andrewgbex, I apologize for the delay in response. Let me look into this for you and let you know what I find!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.