Another variant for creating a non-200 response.
# create a new Response with content-type header 'application/xml'
response = Response(render("template.myt"), code=204)
response.headers['Content-Type'] = 'application/xml'
return response
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
- Re: Status Code Other than 200? Michael G. Noll
- Re: Status Code Other than 200? Ben Bangert
- Re: Status Code Other than 200? wyatt-bC
