Hi guys, I have a question regarding the returned ...
# ory-network
d
Hi guys, I have a question regarding the returned error codes when setting a new password. We looked at the error codes and messages listed here: https://github.com/ory/kratos/blob/master/text/id.go https://github.com/ory/kratos/blob/master/text/message_settings.go and tested two different cases:
Copy code
{
  "id": 4000005,
  "text": "The password can not be used because password length must be at least 8 characters but only got 3.",
  "type": "error",
  "context": {
    "reason": "password length must be at least 8 characters but only got 3"
  }
}
Copy code
{
  "id": 4000005,
  "text": "The password can not be used because the password has been found in data breaches and must no longer be used.",
  "type": "error",
  "context": {
    "reason": "the password has been found in data breaches and must no longer be used"
  }
}
however, we would expect that these cases would have different IDs. Is this a bug? If not, I wonder how we're supposed to add translations. Looking into the messages makes it cumbersome, because some messages use variables. I've checked in archive.ory.sh, where I found the links to the go-modules, but I did not expect issues with the IDs.