zjncs opened a new pull request, #6607: URL: https://github.com/apache/rocketmq-dashboard/pull/6607
### What BusinessException is the error envelope every REST endpoint answers with - the numeric code plus the human message. It had no test. This pins: the numeric constructor carries both, and the HttpStatus convenience constructor delegates the status's numeric value as the code - the global exception handler maps the code back to the HTTP response, so a wrong delegation would turn a 404 into a 500. ### Verification - New tests on unmodified code: **3/3 green**, checkstyle clean. - Discriminating mutation: the HttpStatus delegation hard-coded to 500 (red - the 404/502/503 mappings are caught). - Restored: green. Test-only change; no product code touched. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
