Fixing HTTP error reporting.