We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89acedc commit e77b2beCopy full SHA for e77b2be
marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java
@@ -5547,8 +5547,7 @@ private void checkStatus(Response response) {
5547
MediaType mediaType = MediaType.parse(response.header(HEADER_CONTENT_TYPE));
5548
if ( "json".equals(mediaType.subtype()) ) {
5549
failure = extractErrorFields(response);
5550
- }
5551
- if ( statusCode == STATUS_UNAUTHORIZED ) {
+ } else if ( statusCode == STATUS_UNAUTHORIZED ) {
5552
failure = new FailedRequest();
5553
failure.setMessageString("Unauthorized");
5554
failure.setStatusString("Failed Auth");
0 commit comments