Peak problem types
Home / homematch / access_token_expired

Access token expired

Code
access_token_expired
Type
https://problems.peakintelligence.ch/homematch/access-token-expired
Status
401 Unauthorized
Audience
client. Only the calling software can act on it. A client shows its own general failure and quotes traceId; detail is in English, for developers.
Service
homematch

Description

The access token sent with the request is past its expiry, so the request was refused before it ran. This is the normal end of a short-lived token, not a failure of the session. Use the refresh token to obtain a new access token, then repeat the request once; if the refresh is refused with a session problem, the person has to sign in again.

Example

HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/access-token-expired",
  "title": "Access token expired",
  "status": 401,
  "code": "access_token_expired",
  "audience": "client",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.

Declared by