Expands error handling to all >=400 status codes.