Add reason element of error.
Put Host header if it does not exist.