diff --git a/rollbar/contrib/fastapi/utils.py b/rollbar/contrib/fastapi/utils.py
index <HASH>..<HASH> 100644
--- a/rollbar/contrib/fastapi/utils.py
+++ b/rollbar/contrib/fastapi/utils.py
@@ -1,5 +1,8 @@
+import functools
 import logging
 
+import fastapi
+
 log = logging.getLogger(__name__)
 
 
@@ -11,3 +14,20 @@ class FastAPIVersionError(Exception):
 
         log.error(err_msg)
         return super().__init__(err_msg)
+
+
+class fastapi_min_version:
+    def __init__(self, min_version):
+        self.min_version = min_version
+
+    def __call__(self, func):
+        @functools.wraps(func)
+        def wrapper(*args, **kwargs):
+            if fastapi.__version__ < self.min_version:
+                raise FastAPIVersionError(
+                    '0.41.0', reason=f'to use {func.__name__}() function'
+                )
+
+            return func(*args, **kwargs)
+
+        return wrapper
Add decorator to check minimum required FastAPI version