Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58C3C17477 for ; Thu, 19 Mar 2015 11:03:48 +0000 (UTC) Received: (qmail 14698 invoked by uid 500); 19 Mar 2015 11:03:38 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 14657 invoked by uid 500); 19 Mar 2015 11:03:38 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 14644 invoked by uid 99); 19 Mar 2015 11:03:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 11:03:38 +0000 Date: Thu, 19 Mar 2015 11:03:38 +0000 (UTC) From: "Akitoshi Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6198) No SOAPFault for HTTP error code 400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368863#comment-14368863 ] Akitoshi Yoshida commented on CXF-6198: --------------------------------------- I am not sure if this is a real problem. Why 400 needs to be treated differently from other 4xx? The reason why 500 is treated differently by default is that this is the code that is used when returning a SOAP fault. http://www.ws-i.org/profiles/basicprofile-1.1-2004-08-24.html#R1126 But you can always override this behavior (e.g., making SOAP faults returned with other code processed) by setting the following context property at the client. org.apache.cxf.transport.no_io_exceptions > 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)