adds checking HTTP::Response and exit 1 if not success