getRequestUri fix and error controller format