006
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user