Fixed HTTP error reporting