{% set type, value, tback = sys.exc_info() %} HTTP Status {{ status_code }} {% if exception %} {% set traceback_list = traceback.extract_tb(tback) %} {% set filepath, line, method, code = traceback_list[-1] %}

Application raised {{ exception.__class__.__name__ }}: {{ exception }}

on line {{ line }} of {{ method }} in {{ os.path.basename(filepath) }}

File: {{ filepath }}
{% set extension = os.path.splitext(filepath)[1][1:] %} {% if extension in ['py', 'html', 'htm'] %} {{ get_snippet(filepath, line, 10) }} {% else %}

Cannot load file, type not supported.

{% end %}

Full Traceback

{% for filepath, line, method, code in traceback_list %}

on line {{ line }} of {{ method }} in {{ os.path.basename(filepath) }}

File: {{ filepath }}
{% set extension = os.path.splitext(filepath)[1][1:] %} {% if extension in ['py', 'html', 'htm'] %} {{ get_snippet(filepath, line, 10) }} {% else %}

Cannot load file, type not supported.

{% end %}

{% end %}

Request Headers

{% for hk, hv in handler.request.headers.iteritems() %} {% end %}
{{ hk }} {{ hv }}

Response Headers

{% for hk, hv in handler._headers.iteritems() %} {% end %}
{{ hk }} {{ hv }}
{% end %}