def make_response(message, status_code, details=None):
response_body = dict(message=message)<EOL>if details:<EOL><INDENT>response_body['<STR_LIT>'] = details<EOL><DEDENT>response = jsonify(response_body)<EOL>response.status_code = status_code<EOL>return response<EOL>
Make a jsonified response with specified message and status code.