return with curl result code