Skip to content

OPEN-18

Typed refusal codes; message text is never contract.

What was open

Clients had to classify refusals by matching substrings of the human-readable message, so rewording a message broke them.

Decision

Every refusal carries a stable machine-readable code, and codes are never renumbered or reused. Message text is for a person reading it and may be reworded at any time. Classifying by message text is the textbook stringly-typed API contract, and the convention everywhere else is a stable code. Existing substrings stay load-bearing only until the clients that read them read the code instead.

Rules affected