improve http error to include content in exception