[ https://issues.apache.org/jira/browse/CXF-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14279868#comment-14279868 ]
Bartosz Baranowski edited comment on CXF-6198 at 1/16/15 6:38 AM: ------------------------------------------------------------------ {code:title=HTTPConduit.java|borderStyle=solid} .... if (responseCode >= 400 && responseCode != 500 && !noExceptions) { .... {code} Should be something like: {code:title=HTTPConduit.java|borderStyle=solid} .... if ( responseCode > 400 && responseCode != 500 && !noExceptions) { .... {code} {code:title=HTTPConduit.java|borderStyle=solid} .... if ( responseCode > HttpURLConnection.HTTP_BAD_REQUEST && responseCode != HttpURLConnection.HTTP_INTERNAL_ERROR && !noExceptions) { .... {code} was (Author: baranowb): {code:title=HTTPConduit.java|borderStyle=solid} .... if (responseCode >= 400 && responseCode != 500 && !noExceptions) { .... {code} Should be something like: {code:title=HTTPConduit.java|borderStyle=solid} .... if ( responseCode > 400 && responseCode != 500 && !noExceptions) { .... {code} {code:title=HTTPConduit.java|borderStyle=solid} .... if ( responseCode > HttpURLConnection.HTTP_BAD_REQUEST && responseCode != HttpURLConnection.HTTP_INTERNAL_ERROR && !noExceptions) { .... {code} or something like( Im not sure if this wont cause problems with other HTTP codes though) {code:title=HTTPConduit.java|borderStyle=solid} .... if ( !(responseCode == HttpURLConnection.HTTP_INTERNAL_ERROR || responseCode == HttpURLConnection.HTTP_BAD_REQUEST) && !noExceptions) { .... {code} > No SOAPFault for HTTP error code 400 > ------------------------------------ > > Key: CXF-6198 > URL: https://issues.apache.org/jira/browse/CXF-6198 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.3, 2.7.14 > Reporter: Bartosz Baranowski > > Currently on HTTP.500 is accessible as SOAPFAult, 400 cause exception. > https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java;h=836b530ccf8b13f527169a0a4bd54a864762cb88;hb=refs/heads/master#l1566 > https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java;h=7664129271bd6eb72d97a43c250355d5bd99ceb8;hb=refs/heads/2.7.x-fixes#l1558 > https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java;h=836b530ccf8b13f527169a0a4bd54a864762cb88;hb=refs/heads/3.0.x-fixes -- This message was sent by Atlassian JIRA (v6.3.4#6332)