---
title: Errors
project: OpenTemplates
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/opentemplates/1-0/reference/errors/
updated: 2026-11-19T07:56:21.394Z
---

# Errors

> The errors the REST API returns and what to do about them.

Errors of the render endpoint come back as a JSON array with an `error` text.

| Status | Answer | What to do |
|---|---|---|
| `400` | `[{"error":"Invalid template ID"}]` | Send the `id` field. |
| `400` | `[{"error":"Template not found"}]` | Check the template ID, for example `demo/invoice`. Use the identifiers of the profile and the template, as shown on the template card. |
| `401` | An HTML page that says `401 Unauthorized` | The token is missing or wrong, or the address is blocked after too many wrong tokens. |
| `401` | `[{"name":"401","error":"401: Unauthorized"}]` | On `/profiles/`: the token does not have **Allow read list of profiles**. |

## Blocked after wrong tokens

After more than five requests with a wrong token from one address, OpenTemplates answers `401` to every request from that address, also with a correct token. The block ends by itself within 15 minutes. Fix the token in your app and wait before you try again.
