EricGao888 commented on code in PR #15258:
URL: 
https://github.com/apache/dolphinscheduler/pull/15258#discussion_r1423832156


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/exceptions/ApiExceptionHandler.java:
##########
@@ -36,12 +38,14 @@
 public class ApiExceptionHandler {
 
     @ExceptionHandler(ServiceException.class)
+    @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
     public Result<Object> exceptionHandler(ServiceException e, HandlerMethod 
hm) {
         log.error("{} Meet a ServiceException: {}", hm.getShortLogMessage(), 
e.getMessage());
         return new Result<>(e.getCode(), e.getMessage());
     }
 
     @ExceptionHandler(Throwable.class)
+    @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)

Review Comment:
   @fuchanghai If it is the http status code that bothers you, another thing 
you need to take into consideration is whether you expect to get a 4xx error 
code or 5xx error code. 



-- 
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]

Reply via email to