This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit aa2edefb7b703dfd5ba83561232c806b3324d45d
Author: liubao <bao....@huawei.com>
AuthorDate: Fri Aug 10 10:03:16 2018 +0800

    [SCB-828]data should be CommonExceptionData
---
 .../main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
 
b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
index 127b76d..5642642 100644
--- 
a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
+++ 
b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
@@ -20,6 +20,7 @@ package org.apache.servicecomb.common.rest.codec;
 import java.util.List;
 
 import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response.Status;
 
 import org.apache.servicecomb.common.rest.definition.RestOperationMeta;
 import org.apache.servicecomb.common.rest.definition.RestParam;
@@ -67,7 +68,7 @@ public final class RestCodec {
           restOperation.getOperationMeta().getMicroserviceQualifiedName(),
           e);
       // give standard http error code for invalid parameter
-      throw new InvocationException(400, "", "Parameter is not valid.");
+      throw new InvocationException(Status.BAD_REQUEST, "Parameter is not 
valid.");
     }
   }
 }

Reply via email to