CGUC / skybunk-server

The back-end application for Conrad Grebel University College students to stay connected
3 stars 9 forks source link

Make error response codes in JSON format #76

Open scholvat opened 5 years ago

scholvat commented 5 years ago

The client's HTTP request accepts application/json, so the server should respond with a json, even in an error case. Currently error cases return simple strings such as "Forbidden". Based on the HTTP request, we should return a json or else the client will throw an error.