擅长:python、mysql、java
<p>尝试在呼叫中添加消息:</p>
<pre><code>abort(404,"404 Not Found");
</code></pre>
<p>此外,您还可以自定义错误文档。请参见:
<a href="http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents#changing-the-template" rel="nofollow">http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents#changing-the-template</a></p>