unauthorized

HTTP 401

Unauthorized

Type URL

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

Possible detail messages

Authentication required.
Authentication is required.
Authentication is required to access shared hosting resources.

Example response

{
  "type": "https://developer.hostup.se/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Authentication required.",
  "code": "unauthorized",
  "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 === "unauthorized") {
    // Handle: Unauthorized
    console.error(problem.detail);
  }
}