upstream_shared_hosting_shape_invalid

HTTP 502

Upstream response invalid

Type URL

https://developer.hostup.se/errors/upstream_shared_hosting_shape_invalid

Possible detail messages

The legacy shared hosting response was not valid JSON.
The legacy shared hosting detail could not be normalized.
Shared hosting pause response could not be normalized.

Example response

{
  "type": "https://developer.hostup.se/errors/upstream_shared_hosting_shape_invalid",
  "title": "Upstream response invalid",
  "status": 502,
  "detail": "The legacy shared hosting response was not valid JSON.",
  "code": "upstream_shared_hosting_shape_invalid",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Endpoints that may return this error

Handling this error

const response = await fetch(url, options);

if (!response.ok) {
  const problem = await response.json();

  if (problem.code === "upstream_shared_hosting_shape_invalid") {
    // Handle: Upstream response invalid
    console.error(problem.detail);
  }
}