SHARE
TWEET

Untitled

a guest Jun 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfthrow errorcode="404">
  2.      
  3. <cfscript>
  4.     getPageContext()
  5.     .getResponse()
  6.     .getResponse()
  7.     .sendError( JavaCast( 'int', 404 ), "" );
  8. </cfscript>
  9.      
  10. <cfparam name="URL.method" default="cfthrow" >
  11. <cfif URL.method IS "cfthrow">
  12.     <cftry>
  13.         <cfthrow errorcode="404">
  14.         <cfcatch></cfcatch>
  15.     </cftry>
  16. </cfif>
  17. <cfif URL.method IS "cfheader">
  18.     <cfheader statuscode="404">
  19. </cfif>
  20. <cfif URL.method IS "java">
  21.     <cfscript>
  22.         getPageContext()
  23.             .getResponse()
  24.             .getResponse()
  25.             .sendError( JavaCast( 'int', 404 ), "" );
  26.     </cfscript>
  27. </cfif>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top