Skip to content

ErrorList

What can go wrong: each error with its code, its name, when it happens and what to do.

import ErrorList from '@sypnia/ui/astro/ErrorList.astro'

On this page
  1. Three errors
  2. When to use it
  3. For everyone

Three errors

Each error says how to fix it, without apologising.

Errors

  • 401unauthorized
    The token is missing or was revoked. Make a new one in Settings → Tokens.
  • 404table_not_found
    There is no table with that name. Names are case sensitive.
  • 429rate_limited
    Too many calls in a minute. Wait the seconds in Retry-After.
Code
---
import ErrorList from '@sypnia/ui/astro/ErrorList.astro';
import ErrorItem from '@sypnia/ui/astro/ErrorItem.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<ErrorList>
  <ErrorItem code={401} name="unauthorized">The token is missing or was revoked. Make a new one in Settings → Tokens.</ErrorItem>
  <ErrorItem code={404} name="table_not_found">There is no table with that name. Names are case sensitive.</ErrorItem>
  <ErrorItem code={429} name="rate_limited">Too many calls in a minute. Wait the seconds in <code>Retry-After</code>.</ErrorItem>
</ErrorList>
</div>

When to use it

Use it when

  • The end of an endpoint, a tool or a command.

Do not use it when

  • One error explained at length: write prose.

For everyone

  • A list; codes and names are text.
  1. Three errors
  2. When to use it
  3. For everyone

    Search pages, sections and terms