chore: add status 500 errors to every endpoint

This commit is contained in:
JustTemmie 2025-04-29 21:53:17 +02:00
parent 0f993c39ec
commit 218f91dce2
6 changed files with 14 additions and 8 deletions

View file

@ -11,13 +11,14 @@ No request parameters or request body.
## Responses
| Status | Description |
| ------ | -------------------------------- |
|--------|----------------------------------|
| 200 | The current stats of the server. |
| 500 | An unhandled error occured. |
### 200 response
| Name | Type | Description |
| ------------ | ------ | ------------------------------------------------------------------------------------------- |
|--------------|--------|---------------------------------------------------------------------------------------------|
| accounts | int | The number of signed up accounts. |
| uptime | int | How many seconds the server has been running. |
| version | string | The current server version. |