http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error

Anthony

On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Ty oc wrote:
>
> Still I need to log the ticket issue so we know what is happening (we will 
> be watching for errors to show on the admin webapp), but we dont want the 
> error to be like the HTML that is always show to the user.
>
> I want to return a one of the following depending on where Im returning it 
> (a page in the web app or a request of a service)
>
>
>    - for the service
>       - {"error":"see ticket xyz"} 
>       - for the HTML webpage
>       - General error, return home "here".
>    
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to