def status_code(code):
redirect = dict(headers=dict(location=REDIRECT_LOCATION))<EOL>code_map = {<EOL><NUM_LIT>: redirect,<EOL><NUM_LIT>: redirect,<EOL><NUM_LIT>: redirect,<EOL><NUM_LIT>: dict(data='<STR_LIT>'),<EOL><NUM_LIT>: redirect,<EOL><NUM_LIT>: redirect,<EOL><NUM_LIT>: dict(headers={'<STR_LIT>': '<STR_LIT>'}),<EOL><NUM_LIT>: dict(<EOL>data='<STR_LIT>',<EOL>headers={<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>),<EOL><NUM_LIT>: dict(data=json.dumps({<EOL>'<STR_LIT:message>': '<STR_LIT>',<EOL>'<STR_LIT>': ACCEPTED_MEDIA_TYPES<EOL>}),<EOL>headers={<EOL>'<STR_LIT:Content-Type>': '<STR_LIT:application/json>'<EOL>}),<EOL><NUM_LIT>: dict(headers={'<STR_LIT>': '<STR_LIT>'}),<EOL><NUM_LIT>: dict(  <EOL>data=ASCII_ART,<EOL>headers={<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>),<EOL>}<EOL>r = make_response()<EOL>r.status_code = code<EOL>if code in code_map:<EOL><INDENT>m = code_map[code]<EOL>if '<STR_LIT:data>' in m:<EOL><INDENT>r.data = m['<STR_LIT:data>']<EOL><DEDENT>if '<STR_LIT>' in m:<EOL><INDENT>r.headers = m['<STR_LIT>']<EOL><DEDENT><DEDENT>return r<EOL>
Returns response object of given status code.