curl :: CURLOption :: fail_on_error
# Fail on HTTP 4xx errors. new fail_on_error `{ return CURLOPT_FAILONERROR; `}