Django.fun

getting specific errors type message from HTTPError while working django +firebase

i was trying to make signup page using django and while using the ff code

user = auth_.create_user_with_email_and_password(email, password)

while reaching this point it throws different errors depending on user input like if user input short password less than 6 characters and also if email is already registered .... with same code error 400 and i need that message to to identify the specific error and display the error back here is the message :

[Errno 400 Client Error: Bad Request for url: https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=AIzaSyBmnhaFGTVelDMkPQ3pjvdPMQc28c-JrTs] { "error": { "code": 400, "message": "WEAK_PASSWORD : Password should be at least 6 characters", "errors": [ { "message": "WEAK_PASSWORD : Password should be at least 6 characters", "domain": "global", "reason": "invalid" } ] } }

Answers: 0