Errors
Invalid hostname
The `invalid_hostname` error: HTTP 422 Unprocessable Content.
Not a hostname a custom domain can have: lowercase, no port or path.
| Field | Value |
|---|---|
code | invalid_hostname |
status | 422 Unprocessable Content |
title | Invalid hostname |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is invalid_hostname. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/invalid_hostname",
"title": "Invalid hostname",
"status": 422,
"code": "invalid_hostname"
}See every error code.