Added STDOUT error logging for unsuccessful responses.