osu-capstone-cs72 / cs-applied-plan-portal

A portal that streamlines the planning process for OSU CS Applied students and advisors
https://applied-plan-portal.herokuapp.com
MIT License
2 stars 5 forks source link

Send valid JSON responses on error #29

Closed JacksGo closed 4 years ago

JacksGo commented 4 years ago

When the API server throws an error, the response should still be a valid JSON response, e.g.,

{
  "success": false,
  "error": "Invalid user id"
}