• bountygiver [any]
    link
    fedilink
    English
    711 days ago

    when you are too lazy to ask your request library to not throw exception on non-200 responses.

    • @dan@upvote.au
      link
      fedilink
      511 days ago

      Throwing exceptions is fine since errors are an exceptional circumstance (not expected during normal use of the app), and you probably want errors to follow a different code path so that they can be logged, alerts triggered if needed, etc.