Open standard · First implementation for Home Assistant · Decided in your home

https://home-mandate.org/relay/errors/malformed

Error type malformed

When a relay operator answers a gateway with an error, its "type" member names one of these addresses (Problem Details, RFC 9457). Every address leads here.

From the table in Section 5.1 of the Relay Specification v0.1.0, in the specification's own words.

All error types
  • malformed HTTP 400
    Meaning
    the request does not match this section or the schema
    What the gateway does
    reports a defect, does not repeat the request (except as in Section 6.3)
  • bad-nonce HTTP 400
    Meaning
    nonce unknown, used or expired
    What the gateway does
    repeats once with the fresh nonce
  • bad-signature HTTP 401
    Meaning
    a signature does not verify, or kid names no installation
    What the gateway does
    except during a key change (Section 5.5): ends the pairing locally as on offline-too-long and tells the household (Section 5.7)
  • Meaning
    the pairing code is wrong, expired, used, not yet usable or not for this operator; the operator does not say which
    What the gateway does
    asks for a new code
  • Meaning
    the change needs the household's confirmation in the portal (Section 5.6)
    What the gateway does
    tells the household and reads its installation as in Section 5.6
  • Meaning
    the installation was without a valid tunnel certificate longer than max_offline_days (Section 5.5)
    What the gateway does
    ends the pairing locally (Section 5.7)
  • blocked HTTP 403
    Meaning
    the operator blocked the installation (Section 5.7)
    What the gateway does
    Section 5.7
  • bad-csr HTTP 400
    Meaning
    the certificate request breaks Section 5.4
    What the gateway does
    creates a new tunnel key and request
  • Meaning
    another installation holds the own-domain name (Section 6.4)
    What the gateway does
    tells the household
  • key-conflict HTTP 409
    Meaning
    the installation key of a pairing or the new key of a key change is already in use (Sections 5.2, 5.5); a pairing code stays unredeemed
    What the gateway does
    creates a new key and repeats the request
  • unpaired HTTP 410
    Meaning
    the installation was unpaired or replaced (Sections 5.2, 5.7)
    What the gateway does
    ends the pairing locally (Section 5.7)
  • rate-limited HTTP 429
    Meaning
    too many requests; the response carries Retry-After
    What the gateway does
    waits at least that long, or as on server-internal without the header, except before a CAA alarm (Section 6.7)
  • Meaning
    anything else
    What the gateway does
    retries with exponential backoff