Fixed sending HTTP errors
Fixed sending HTTP errors
Fixed log message to an error message