HttpURLConnection.getErrorStream Returns NULL For 401 Response (Doc ID 2133570.1)

Last updated on MAY 10, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 12.1.3.0.0
Information in this document applies to any platform.

Symptoms

HttpURLConnection#getErrorStream() returns null when http response code is 401. Here is a output example:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms