#5182·hurl

Implement curl --fail option

Author: jcamielCreated Jul 31, 2026Updated Aug 12, 2026
Labelsenhancementtopic: curl options

Implements curl --fail.

From curl man page:

Fail with error code 22 and with no response body output at all for HTTP transfers returning HTTP response codes at 400 or greater.

See how this option interacts with the option we've just implemented --fail-with-body