我们有一种情况,我们希望从在线 Quickbooks 返回 XML 中的错误消息,但是,我们从 API 返回以下消息,状态代码为 400。
<html>
<head>
<title>JBoss Web/2.1.12.GA-patch-03 - Error report</title>
<style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head>
<body>
<h1>HTTP Status 400 - message=No destination found for given partition key; errorCode=007001; statusCode=400</h1>
<HR size="1" noshade="noshade">
<p>
<b>type</b> Status report
</p>
<p>
<b>message</b> <u>message=No destination found for given partition key; errorCode=007001; statusCode=400</u>
</p>
<p>
<b>description</b> <u>The request sent by the client was syntactically incorrect (message=No destination found for given partition key; errorCode=007001; statusCode=400).</u>
</p>
<HR size="1" noshade="noshade">
<h3>JBoss Web/2.1.12.GA-patch-03</h3>
</body>
</html>
客户的试用帐户似乎已过期。我们的代码是否应该处理这种类型的错误,或者这是 Intuit 的问题,因为它们没有返回 XML 消息?