allows mark a middleware as error handler through an interface
remove the extension from the Engine interface so it can become a functional interface with default implementation under Java8