This commit is contained in:
msyu
2024-11-01 09:07:22 +03:00
parent df6576a505
commit d8d11e810f
3 changed files with 19 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
<cfcomponent extends="taffy.core.resource" taffy:uri="/error">
<cffunction name="get" hint="Имитация ошибки HTTP">
<cfargument name="statusCode" type="string" hint="type:integer" default="200"/>
<cfargument name="statusText" type="string" hint="type:string" default=""/>
<cfreturn representationOf(arguments.statusText).withStatus(arguments.statusCode)/>
</cffunction>
</cfcomponent>