Unauthorized
https://developer.hostup.se/errors/unauthorized {
"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"
} const response = await fetch(url, options);
if (!response.ok) {
const problem = await response.json();
if (problem.code === "unauthorized") {
// Handle: Unauthorized
console.error(problem.detail);
}
}