sts-api/data/templates/errorpage.404.basic.xml.jinja
2023-02-02 02:47:12 +00:00

13 lines
505 B
Django/Jinja

<?xml version='1.0' encoding='UTF-8'?>
<data>
<result type="{{result.type}}">
{% if result.errors %}
<errors>
{% for item in result.errors %}
<error type="{{ result.errors[item].type }}" source="{{ result.errors[item].source }}">{{ result.errors[item].remark }}</error>
{% endfor %}
</errors>
{% endif %}
</result>
<outbody type="{{ outbody.type }}" compression="{{ outbody.compression if outbody.compression else "none" }}">{{ outbody.remark }}</outbody>
</data>