Hi all, I have a pyramid application. How can I change the content_type to problem+json (as defined in: https://tools.ietf.org/html/rfc7807#page-9)
My code looks like this: from pyramid.httpexceptions import HTTPNotFound def error_handler(self, message): response = HTTPNotFound() response.body = dumps({'message': message}) response.content_type = 'application/json' raise response Changing the content_type to application/problem+json doesn't work. Regards, Sascha -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/05b13c47-0d19-4fe4-a8ca-8ed2d43634f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.