There a webpage which accepts an ?id= URL parameter lets say like this
https://localhost/report.cfm?id=34
I want to give access to the user if the id is a valid report id.
Is there any way I can get the value of that id parameter which is passed to page inside Application.cfc. If that doesn't point to a valid id, I should be able to show an error page like 404 with the help of OnError function in coldfusion.