diff --git a/src/modules/tm/doc/functions.xml b/src/modules/tm/doc/functions.xml
index 7fa0ad83e93..7bcc3a43ccf 100644
--- a/src/modules/tm/doc/functions.xml
+++ b/src/modules/tm/doc/functions.xml
@@ -369,6 +369,27 @@ t_reply("404", "Not found");
+
+
+ t_reply_error()
+
+
+ Sends a stateful reply based in internal error code, similar to
+ sl_send_error() from sl module.
+
+
+ This function can be used from REQUEST_ROUTE.
+
+
+ t_reply_error usage
+
+...
+t_reply_error();
+...
+
+
+
+
t_send_reply(code, reason)