404 Not Found
No such coupon
- Code
coupon_unknown- Status
404Not Found- Type
https://errors.clavian.io/coupon-unknown
What it means
No coupon matches the code entered. The attempt counts towards the player’s failed-attempt limit.
What to do
Say the code was not recognised and let the person check it and type it again.
Example
The API answers with status 404 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/coupon-unknown",
"title": "No such coupon",
"status": 404,
"code": "coupon_unknown",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/station/coupons/redeemRedeem a coupon at the kiosk