curl and jq 8 · Debugging and reliability

Fail on HTTP errors

Return a non-zero exit code on 4xx and 5xx responses, and print the body.

curl --fail-with-body https://api.example.com/users

Official curl and jq 8 documentation

More debugging and reliability commands

All debugging and reliability commands · curl and jq 8 cheatsheet

Was this page helpful?