JD-P / accordius

Whistling Lobsters 2.0 backend with Django and Postgres
MIT License
1 stars 3 forks source link

Add standard error handling path #12

Open JD-P opened 5 years ago

JD-P commented 5 years ago

Right now it's unclear to clients (e.g, GreaterWrong) what should be done in response to an error code from the server. It would be helpful if error responses included json payloads with more information such as whether the error is recoverable and what error message should be shown to the user. This could then be used by clients to automatically distinguish between user-recoverable errors and errors which are not recoverable.