def custom_html(self, filepath):
try:<EOL><INDENT>response.headers.append("<STR_LIT>", "<STR_LIT:*>")<EOL>response.headers.append("<STR_LIT>", "<STR_LIT>")<EOL>response.headers.append("<STR_LIT:Content-Type>", "<STR_LIT>")<EOL>return static_file(filepath, root=self.config.html)<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise PJFBaseException(e.message if hasattr(e, "<STR_LIT:message>") else str(e))<EOL><DEDENT>
Serve custom HTML page