Support http headers and errors in Http client.