Localight / LocalightBackend

This will contain the backend of the database for the Backend.
http://localism.github.io/LocalightDocs/#/
0 stars 0 forks source link

Error Status Code #93

Closed thebeachdev closed 9 years ago

thebeachdev commented 9 years ago

In order for my tests to be accurate I need the methods to return a status code. Some of the calls look like this. return res.json({msg: 'Invalid Phone Number (only xxxxxxxxxx)!', status: 412}); Could you go through and change them to something like this.

return res.status(412).send({ msg: 'Invalid Phone Number (only xxxxxxxxxx)!' }); the status object is the most important part.

thebeachdev commented 9 years ago

@julianpoy did you do this throughout the project or just in the giftcard related files?

julianpoy commented 9 years ago

Closed in #95