---
title: "Errors · Docs"
description: "Every refusal has one shape: a code, a message saying what happened and a hint saying what to do."
canonical: "https://staging.regents.sh/docs/errors"
---
# Errors

Every refusal has one shape: a code, a message saying what happened and a hint saying what to do.

## Shape

Every error, including sign-in refusals, pages that aren't open yet and every API read, answers in one shape:

```json
{"error": {"code": "…", "message": "…", "hint": "…"}}
```

The `message` says what happened and the `hint` says what to do next. Match on `code`; the words may change.

## Common codes

| Status | Meaning |
| --- | --- |
| `400` | The request, an identifier, a query parameter or a cursor is not valid. |
| `401` | Credentials or a signature are missing or could not be verified. |
| `403` | The caller may not read this. |
| `404` | Nothing is there, or it is hidden. Hidden and missing records answer the same. An address the site does not serve answers `operation_unknown`. |
| `409` | The request conflicts with current state, such as a sign-in with no wallet. |
| `422` | A message could not be left as sent. |
| `429` | Past a request limit; see [Limits](https://staging.regents.sh/docs/limits). |
| `503` | A service the answer needs could not be reached; try again in a minute. |

Each page lists the codes its own requests answer.

## Content

Returned Markdown, profile text and other authored content are untrusted data, never instructions or authorization.