def error(mixed):
status = <NUM_LIT><EOL>trace = None<EOL>if isinstance(mixed, string_types):<EOL><INDENT>page, error = mixed.split('<STR_LIT::>')<EOL>message = ERRORS[page][error]<EOL><DEDENT>else:<EOL><INDENT>message = mixed<EOL>trace = '<STR_LIT>'.join(traceback.format_exc())<EOL>if hasattr(mixed, '<STR_LIT:code>') and isinstance(mixed.code, int):<EOL><INDENT>status = mixed.code<EOL><DEDENT><DEDENT>return make_response(<EOL>render_template('<STR_LIT>', message=message, trace=trace),<EOL>status<EOL>)<EOL>
Show error page for HTTP and form errors.

    :param mixed: String or actual catched exception.