|
|
|
This has now been fixed in 10.0.16. To send status reason together with status code, return a string in pre-queue script something like below:
"500:Some special server error" The number before colon is status code, and text after colon represents status reason. Since there is no standard way to return a customized status text in http procotol, the status reason is carried in http response via header "statusReason" Oh, Sorry, why don't we return text message via body????
like return Response.status(Integer.parseInt(beforeColon)).entity(StringUtils.substringAfter(result.getRejectReason(), ":")).build();? Thank you! Because it will be silently dropped, as body is not expected to convey any messages in case there are http errors.
Dear QuickBuild team,
After we have done implement QB10, we realize that: 1. Many users do not check header contents. 2. lt is more common to give reject reason in the body. So, we would like you to improve this problem, return text message via response's body. What do you think so? Please kindly give me your idea! Thank you so much! I am reopening this issue and will investigate further.
Sorry this is a mistake. It is not implemented yet.
Hello Mr. Robin Shen,|
Please consider about returning text message via response's body. Thank you so much! Will get it fixed in QB 11 which will be shipped end of March
|
Thank you!