Updated the response function.

Trying to fix the no output on error 400 issue.