incalculable-petabyte-84501
07/05/2024, 11:25 AMchilly-king-10285
07/05/2024, 11:25 AMchilly-king-10285
07/05/2024, 11:25 AMincalculable-petabyte-84501
07/05/2024, 11:27 AMchilly-king-10285
07/05/2024, 11:27 AMchilly-king-10285
07/05/2024, 11:28 AMxyyzzzz
) where: - x
is the message type which is either 1
for an info message (e.g. 1020000
), 4
(e.g. 4020000
) for an input validation error message, and 5
(e.g. 5020000
) for a generic error message. - yy
is the module or flow this error references. For example, 01
for login messages (e.g. 1010000
), 02
for logout messages (e.g. 1020000
), 03
for multi-factor authentication messages (e.g. 1030000
), and so on. - zzzz
is the message ID and typically starts at 0001
. For example, message ID 4070001
(4
for input validation error, 07
for verification, 0001
for the concrete message) is: The verification code has expired or was otherwise invalid. Please request another code.
You can find an overview of all message IDs used in the [Ory documentation](https://www.ory.sh/docs/kratos/concepts/ui-user-interface#titles-labels--validation-messages). You can use these IDs to map to your own custom messages in the language of your choice. Here are a few examples of error messages with their IDs: - `4000030`: "const failed" - `4000020`: "must be <= 5 but found 6" - `4010004`: "Could not find a strategy to update your settings. Did you fill out the form correctly?" - `4000019`: "must be > 5 but found 5" - `4000021`: "must be < 5 but found 5" You can find more examples in the [Ory documentation](https://www.ory.sh/docs/kratos/concepts/ui-user-interface).