public IActionResult ErrorWithCode(int errorCode) { var statusCodeException = new WebAppStatusCodeException(HttpContext); var errorVm = _mapper.Map <ErrorViewModel>(statusCodeException); var eventCode = int.Parse($"{errorCode}{LoggingEventPostfixes.Application}"); ExceptionProcessor.ProcessWarning(eventCode, _logger, HttpContext, statusCodeException, statusCodeException.Path, $"Status code: {errorCode}"); return(View(errorVm)); }