async def send_http_response(writer,<EOL>http_code: int,<EOL>headers: List[Tuple[str, str]],<EOL>content: bytes,<EOL>http_status: str= None<EOL>) -> None:
<EOL>if not http_status:<EOL><INDENT>http_status = STATUS_CODES.get(http_code, '<STR_LIT>')<EOL><DEDENT>response: bytes = f'<STR_LIT>'.encode()<EOL>for k, v in headers:<EOL><INDENT>response += f'<STR_LIT>'.encode()<EOL><DEDENT>response += b'<STR_LIT:\r\n>'<EOL>response += content<EOL>writer.write(response)<EOL>await writer.drain()<EOL>
generate http response payload and send to writer