quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

fail-with-body.md (771B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: fail-with-body
      5 Protocols: HTTP
      6 Help: Fail on HTTP errors but save the body
      7 Category: http output
      8 Added: 7.76.0
      9 Mutexed: fail
     10 Multi: boolean
     11 See-also:
     12   - fail
     13   - fail-early
     14 Example:
     15   - --fail-with-body $URL
     16 ---
     17 
     18 # `--fail-with-body`
     19 
     20 Return an error on server errors where the HTTP response code is 400 or
     21 greater). In normal cases when an HTTP server fails to deliver a document, it
     22 returns an HTML document stating so (which often also describes why and more).
     23 This option allows curl to output and save that content but also to return
     24 error 22.
     25 
     26 This is an alternative option to --fail which makes curl fail for the same
     27 circumstances but without saving the content.