Further improvement to error handling of HTTP internal output.