, 200, "OK"),
BAD_REQUEST(HttpStatus.BAD_REQUEST, 400, "Bad Request"),
INTERNAL_SERVER_ERROR(...private HttpStatus httpStatus;
/** 业务异常码 */
private Integer code;
/** 业务异常信息描述 */
private...String message;
ResultStatus(HttpStatus httpStatus, Integer code, String message) {
this.httpStatus...> body = Result.failure();
HttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;
return...> body, HttpHeaders headers, HttpStatus status, WebRequest request) {
if (HttpStatus.INTERNAL_SERVER_ERROR.equals