Take a look at http://chicagoboss.org/doc/api-controller.html specifically the 
section of simple bridge.  The listed functions are all par of the Req passed 
into your function in a chicagoboss controller.  Referer, peer_ip and others 
can be used to create a meaningful 404 page (i.e. Req:peer_ip()).

-Kai

Sent from my iPhone

> On Apr 27, 2015, at 10:41, [email protected] wrote:
> 
> Hi,
> 
> I'd like to write a 404 handler which sends the original URL to the template 
> in order to have something like: 
> "you tried to access '/foobar', I have no idea what /foobar is, support staff 
> have been notified, thanks"
> 
> But I don't know what the correct parameters for a 404 handler are, the 
> examples only show "lost('GET',[]) ->"
> 
> Is there an easy way to obtain the original request URL ?
> 
> Bryan
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/chicagoboss/3aa2e35e-1e77-455f-bb84-786c1a42267b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/E6574C17-F6F7-40B7-8A65-776402E95C17%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to