rcaputo/bot-pastebot — pull request #4 by elmar (2013-05-15 10:29:11+00:00)
Title: pastebot web page should return status 200 (instead of 500) on success

Even when there was no problem with the web page pastebot would return a status 500 code. A visitor to the page may not be aware of this problem but our monitoring would always report an 500 internal server error.

This patch replaces the constant 1 with the actual $error code that was evaluated in _render_template.