public static Error ToApiError(this Exception exception, bool isDevelopment)
 {
     return(exception switch
     {
         ApiException apiException => apiException.ToApiError(isDevelopment),
         _ => new Error
         {
             Status = "500",
             Title = "Internal server error with Calender Service",
             Detail = "There was an internal issue when processing the request with Calender Service",
             Meta = new Meta {
                 { "details", isDevelopment ? exception.ToString() : null }
             }
         }
     });