Fix "Invalid Status Code: [object Object]" message

Being unable to parse the response object (it being circular),
and judging from the rest of the message, pick up statusCode
of response object instead.
Merge remote-tracking branch 'alde/invalid_status_code_message'