   [SuppressMessage("Reliability", "CA2017:Parameter count mismatch", Justification = "&lt;Pending&gt;")]
    public void OnPost()
    {
        var exceptionHandler = HttpContext.Features.Get&lt;IExceptionHandlerFeature&gt;();
        
        if (exceptionHandler is not null)
        {
            _logger.LogCritical("You can log the error with the detailed message in the exceptionHandler {exceptionHandler.Error.Message}");
            _logger.LogCritical("You can log the error with the stack trace in the