replace your return type to ResponseEntity<>, then you can apply following for 400. return new ResponseEntity<>(HttpStatus.BAD_REQUEST);.
確定! 回上一頁