Customize the error page for failed Signature verification
masterBy default, WeRoBot provides a built-in error page that is returned when Signature verification fails. You can override this behavior by using the @robot.error_page decorator on a function. This function must accept a url argument and return a string containing the HTML content for the error page.
@robot.error_page
def make_error_page(url):
return "<h1>喵喵喵 %s 不是给麻瓜访问的快走开</h1>" % url