Added additional logging of result text if returned an errored status code