Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Improve response when channel does not exist #63

Open
4www opened this issue Feb 14, 2020 · 0 comments
Open

Improve response when channel does not exist #63

4www opened this issue Feb 14, 2020 · 0 comments

Comments

@4www
Copy link

4www commented Feb 14, 2020

Currently it sends the plain text:

Error: could not handle the request

See https://api.radio4000.com/backup?slug=non-esisting-slug

We could define a error message object what we send, with at least a key message, and something explicit.

{
  "Code": 404,
  "Error": "Path not found",
  "ErrorDescription": "",
  "Details": {}
}

Example from: https://api.protonmail.ch/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant