I guess you could add 429 to gluon.http definitions in your model and then 
use it, but I haven't tried it

Something like thin in your model

from gluon import http

http.defined_status[429] = 'Too Many Request'

And then in your controllers

raise HTTP(429)

Quarta-feira, 1 de Maio de 2013 15:13:05 UTC+1, Carl escreveu:
>
> Web2py supports a subset of HTTP status codes as listed here: 
> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
>
> The LinkedIn service I am using employs throttling and I'd like to throw a 
> 429 
> Too Many Requests exception.
>
> Can this status code, along with other missing codes, be added to web2py 
> in gluon/http.py?
>
>
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to