Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4191185

HttpURLConnection throws a FileNotFound exception if the resultcode is >= 400

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: jn10789 Date: 11/18/98


      This makes it impossible to figure out the result code if the error is 400 or greater.
      It should only throw FileNotFound if the error is 404, and then it is questionable if
      getResponseCode should throw an exception if there is a responseCode available.
      (Review ID: 39191)
      ======================================================================

            shihliu Sharon Liu (Inactive)
            jdn Jeffrey Nisewanger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: