Fix passing of the http request to the response:on_error() callback.