title: How to throw an error in Bash?
body: <p>How do I throw an error in bash to get in my <em>catch</em> clause (I'm not sure what this expression is actually called)</p>
  
  <pre><code>{
    # ...
    if [ "$status" -ne "200" ]
      # throw error
    fi
  } || {
    # on error / where I want to get if status != 200
  }
  </code></pre>
  
  <p>I know I just could use a function but this case made me curious if it would be possible to do this</p>