@@ -0,0 +1,310 @@
+@RestController%0Apublic class CustomErrorController implements ErrorController%7B%0A%0A    private static final String PATH = %22/error%22;%0A%0A    @RequestMapping(value = PATH)%0A    public String error() %7B%0A        return %22Error handling%22;%0A    %7D%0A%0A    @Override%0A    public String getErrorPath() %7B%0A        return PATH;%0A    %7D%0A%7D%0A

Create CustomErrorController.java