If you post two matching passwords that do not fulfil the password strength validation rules then the endpoint responds that new_password2 does not match
{
"new_password": ["Password must have at least one upper case letter, one lower case letter, and one number."],
"new_password2": ["Your new passwords do not match."]
}