Fix issue with wrong command line parameters
resty doesn't exist when an error parsing response is returned
Print response unless it is an empty string