package kr.ac.kaist.se.tardis.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.http.HttpStatus;


public class ExceptionHandlingController implements ErrorController {

	@ResponseStatus(code=HttpStatus.NOT_FOUND)
	public String notFound(){
		return "errorpage";
	}
	
	@ResponseStatus(code=HttpStatus.FORBIDDEN)
	@RequestMapping("error")
	public String forbidden(){
		return "errorpage";
	}

	@Override
	public String getErrorPath() {
		return "/error";
	}
}

@@ -336,16 +336,27 @@
 tus;%0D%0A%0D%0A
+@Controller
 %0D%0Apublic

Fix controller annotation on Error