YCPCS-481-TeamB / BaseballSim

CS481 Group Project
0 stars 0 forks source link

API does not return appropriate HTTP status codes #30

Closed bcoov closed 7 years ago

bcoov commented 7 years ago

The API currently returns an HTTP 200 status code as a response when obtaining data, whether the requester is authenticated or not. Is there a way to have the API return appropriate codes for the situation? In this case, an HTTP 401 code would be expected.

bfwalton commented 7 years ago

Issue resolved for that specific situation in commit 45086355d1498a77bbb13cf258813baeb74444d5

This change is only reflected in the development branch for now because the version on heroku needs updated database tables for full functionality.