The Reservation code field received 12345. “Invalid value” offers no repair. If the rule is six digits and accepts leading zeros, use “Enter a reservation code with six digits. Keep any zeros at the start.”

Give each condition its own response

For a blank field, ask for the code. For a wrong length, state the six-digit rule. If the booking system is unavailable, explain the next action separately. Keep the trigger and exact message together in your review document.

The fictional Reservation code field shows 12345 and a six-digit instruction.

Illustrated message for a wrong-length input.

Test the suggested correction

Try blank, 12345 and a fictional valid six-digit value such as 012345. Verify the message uses the field label, appears where people can find it, and points to an action the interface accepts.

A test compares blank, five digits and a six-digit value with a leading zero.

Illustrated validation cases. Check that the product actually accepts leading zeros.

GOV.UK Design System guidance on error messages