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
Three errors
Each error says how to fix it, without apologising.
Errors
- 401
unauthorizedThe token is missing or was revoked. Make a new one in Settings → Tokens. - 404
table_not_foundThere is no table with that name. Names are case sensitive. - 429
rate_limitedToo many calls in a minute. Wait the seconds inRetry-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.