Fixed up getErrorResponse to use the HttpHeader

getErrorResponse now takes the read HttpHeader instead of the *http.Request
struct. This should mean protocol replies when an error occurs should match
the initial protocol of the request now.