curl

Table of Contents

Exit status of curl discussion

# return exit code 22 when url not found or
# HTTP error code being 400 or above
curl --fail <url>