password_too_weak

HTTP 400

Password too weak

Type URL

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

Example response

{
  "type": "https://developer.hostup.se/errors/password_too_weak",
  "title": "Password too weak",
  "status": 400,
  "detail": "Password too weak.",
  "code": "password_too_weak",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Handling this error

const response = await fetch(url, options);

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

  if (problem.code === "password_too_weak") {
    // Handle: Password too weak
    console.error(problem.detail);
  }
}