template_name_conflict

HTTP 409

Template name already exists

Type URL

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

Detail message

A nameserver template with this name already exists.

Example response

{
  "type": "https://developer.hostup.se/errors/template_name_conflict",
  "title": "Template name already exists",
  "status": 409,
  "detail": "A nameserver template with this name already exists.",
  "code": "template_name_conflict",
  "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 === "template_name_conflict") {
    // Handle: Template name already exists
    console.error(problem.detail);
  }
}