forked from jriou/coller
feat: Return top-level errors to clients
In order to reduce security risk, the server now returns only functional error messages to the clients and log low-level error messages. Fixes #35. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
ee7b5f0c6e
commit
55de3afc71
4 changed files with 170 additions and 115 deletions
|
@ -102,8 +102,7 @@ Body (JSON):
|
|||
### Errors
|
||||
|
||||
Errors return **500 Server Internal Error** with the **JSON** payload:
|
||||
* **message** (string): context of the error
|
||||
* **error** (string): error message
|
||||
* **message** (string): message of the error
|
||||
|
||||
## Dependencies
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue