Errors

custom_domain_invalid

400: Not a hostname.

Not a hostname. Answered with 400.

What it means

The value is not a hostname Tigby can serve: empty, carrying a scheme, a port or a path, or a public suffix like co.uk, which nobody registers and so nobody can prove.

What to do

Send the hostname on its own, lowercase, under a domain you own: {"hostname": "tunnel.customer.com"}.

The body

{
  "type": "https://tigby.eu/problems/custom_domain_invalid",
  "title": "Not a hostname",
  "status": 400,
  "detail": "…what was refused, naming this request's own values",
  "code": "custom_domain_invalid",
  "doc_url": "https://docs.tigby.eu/errors/custom_domain_invalid",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.