handle 1.4.5+ changes to http errors in pyramid