Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfthrow errorcode="404">
- <cfscript>
- getPageContext()
- .getResponse()
- .getResponse()
- .sendError( JavaCast( 'int', 404 ), "" );
- </cfscript>
- <cfparam name="URL.method" default="cfthrow" >
- <cfif URL.method IS "cfthrow">
- <cftry>
- <cfthrow errorcode="404">
- <cfcatch></cfcatch>
- </cftry>
- </cfif>
- <cfif URL.method IS "cfheader">
- <cfheader statuscode="404">
- </cfif>
- <cfif URL.method IS "java">
- <cfscript>
- getPageContext()
- .getResponse()
- .getResponse()
- .sendError( JavaCast( 'int', 404 ), "" );
- </cfscript>
- </cfif>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement