You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/07/25 10:18:27 UTC

[GitHub] [servicecomb-java-chassis] GitDengweijun opened a new issue #1278: cse 下载的sdk demo怎么用responseEntity返回自定义的headers和httpstatus

GitDengweijun opened a new issue #1278: cse 下载的sdk demo怎么用responseEntity返回自定义的headers和httpstatus
URL: https://github.com/apache/servicecomb-java-chassis/issues/1278
 
 
   1. 代码
   
   @RequestMapping(value = "/helloworld",
               produces = { "application/json" },method = RequestMethod.POST)
       public  ResponseEntity<String> helloworldFail2(HttpServletRequest request,String body) {
           HttpHeaders headers = new HttpHeaders();
           headers.add("test-dwj","chuncked");
           return new ResponseEntity<>("test",headers,HttpStatus.BAD_REQUEST);
       }
   
   2. 结果 
   
   status code是 590
   {
   "message": "Cse Internal Server Error"
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services