Maybe it is a stupid question but I cannot figure out how to a http status code in webpy.
In the documentation I can see a list of types for the main status codes, but is there a generic function to set the status code?
I'm trying to implement an unAPI
server and it's required to reply with a 300 Multiple Choices
to a request with only an identifier. More info here
Thanks!
EDIT: I just discovered that I can set it through web.ctx
doing
web.ctx.status = '300 Multiple Choices'
is this the best solution?