Skip to content

invalid_cidr

Invalid CIDR. HTTP status 400.

The `parentCidr` sent to `POST /api/v2/private-networks` is not an aligned /21 range inside 10.200.0.0/14.

What to do

Send a /21 that starts on a /21 boundary from 10.200.0.0 to 10.203.248.0, for example 10.200.8.0/21. Or leave parentCidr out to get a free range assigned.

What the message says

  • parentCidr must be an aligned /21 within 10.200.0.0/14.

Example

Response 400
{
"type": "https://developer.hostup.se/errors/invalid_cidr",
"title": "Invalid CIDR",
"status": 400,
"detail": "parentCidr must be an aligned /21 within 10.200.0.0/14.",
"code": "invalid_cidr",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.