Women in Technology

Hear us Roar

  Introduction to Amazon S3 with Java and REST
Subject:   nice article
Date:   2007-11-08 17:02:02
From:   slackorama
Nice article.

But this seems kind of strange and non-standard to me.
if ((statusCode/100) != 2)

why not just use if (statusCode != 200)?

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • It's not just 200, it's 2XX
    2007-11-09 07:44:34  pcarroll [View]

    I'm guessing that the ((statusCode/100) != 2) to handle *all* 2XX return codes, not just 200.