phoenixking25 / Obscura-4.5-backend

NIT KKR online crypt hunt game-backend in flask
0 stars 0 forks source link

Use correct status codes #6

Open AnshulMalik opened 7 years ago

AnshulMalik commented 7 years ago

You can refer https://httpstatuses.com/, to know which status code to return.

There are many other cases, please resolve them as well

AnshulMalik commented 7 years ago

https://github.com/phoenixking25/Obscura-4.5-backend/blob/master/routes.py#L25 Should return empty array

https://github.com/phoenixking25/Obscura-4.5-backend/blob/master/routes.py#L47 Missing status code

https://github.com/phoenixking25/Obscura-4.5-backend/blob/master/routes.py#L132 Wrong answer isn't technically a bad request