diff --git a/src/main/java/it/inaf/oats/vospace/exception/ErrorController.java b/src/main/java/it/inaf/oats/vospace/exception/DefaultErrorController.java
similarity index 84%
rename from src/main/java/it/inaf/oats/vospace/exception/ErrorController.java
rename to src/main/java/it/inaf/oats/vospace/exception/DefaultErrorController.java
index 17d2091445134e663d2312a23a4a9f785e4e8932..2267ace84210d7bdc15ea27d009e91bdbe162963 100644
--- a/src/main/java/it/inaf/oats/vospace/exception/ErrorController.java
+++ b/src/main/java/it/inaf/oats/vospace/exception/DefaultErrorController.java
@@ -9,20 +9,16 @@ import java.nio.charset.StandardCharsets;
 import java.util.Map;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
 import org.springframework.boot.web.error.ErrorAttributeOptions;
 import org.springframework.boot.web.servlet.error.ErrorAttributes;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
 
-@RestController
 @RequestMapping("${server.error.path:${error.path:/error}}")
-public class ErrorController extends AbstractErrorController {
+public class DefaultErrorController extends AbstractErrorController {
 
-    @Autowired
-    public ErrorController(ErrorAttributes errorAttributes) {
+    public DefaultErrorController(ErrorAttributes errorAttributes) {
         super(errorAttributes);
     }