def iter_headers(self):
headers = iter(self._headers.items())<EOL>bad_headers = self.bad_headers.get(self.status_code)<EOL>if bad_headers:<EOL><INDENT>headers = [h for h in headers if h[<NUM_LIT:0>] not in bad_headers]<EOL><DEDENT>for name, values in headers:<EOL><INDENT>for value in values:<EOL><INDENT>yield name, value<EOL><DEDENT><DEDENT>if self._cookies:<EOL><INDENT>for c in list(self._cookies.values()):<EOL><INDENT>yield '<STR_LIT>', c.OutputString()<EOL><DEDENT><DEDENT>
Yield (header, value) tuples, skipping headers that are not
            allowed with the current response status code.