Ensure response.error is populated correctly.
Merge pull request #162 from lextoumbourou/fix-response-error

Ensure response.error is populated correctly.