Fixed problem with all response types returning 200 OK

Currently all the response methods are returning 200 OK (res.internalServerError, res.badRequest) etc.

Passed the code variable into the res.send method to fix it.