AS-staging error. JSON parse error.

- If client sends an invalid authentication request then return the invalid response instead to crash.
i have a question about this. IS !response shouldn't this return a 500? 

Maybe we can do  if (!response || response.statusCode == 500) { return res.send(500, 'Invalid Request')