Bundle http error/headers into document