← all problem types

invalid_confirmation_code

422 Unprocessable Content   The confirmation code is not valid.

When you get it

The confirmation code is not valid. It is always answered with HTTP 422 - one code means one status, so a client may key its handling on either.

Fields it carries

Inside each errors[] entry, beside pointer:

attemptsLeft
How many further attempts remain before the code is invalidated.
expiresAt
When the value stops being valid.
reason
The machine-readable sub-case, when one code covers several. Branch on it.

A field is omitted when the server genuinely does not know it - an absent member is never the same as an empty one.

How to fix it

The request was well-formed but a value is not acceptable. The fields above name the offending value and what would be accepted - fix the request and retry.

Shape

{
  "type":   "https://api2.host-tracker.com/problems/invalid-confirmation-code",
  "title":  "The confirmation code is not valid.",
  "status": 422,
  "code":   "invalid_confirmation_code",
  "errors": [
    { "attemptsLeft": …, "expiresAt": …, "reason": … }
  ]
}