<@U04UQ68083H> when implementing the registration ...
# ory-copilot
i
@chilly-king-10285 when implementing the registration flow I am always getting 400 on updateRegistrationFlow can I somehow debug the reason?
c
A message from kapa.ai
New message text here
i
@chilly-king-10285 can I switch the language of the exception messages in the response, or is there a complete list with exception ids on which I can map?
c
A message from kapa.ai
Yes, you can customize the language of the exception messages in the response. Ory uses message IDs for error messages, which allows you to map these IDs to your own custom messages in the language of your choice. The message ID is a 7-digit number (
xyyzzzz
) 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).