Return error object, instead of causing an error when proxy request is invalid
Catch malformed request errors to /proxy