{# The page a failed *primary* operation becomes. A document detail with no document is not a page with an empty section, so the whole response becomes this — at the status the error's type implies, which is the same derivation the JSON surface uses. The three fields are the envelope's own: nothing is softened into "something went wrong", because the hint is usually the thing that fixes it. #}{% extends layout %} {% block content %}
{# The bare operation name read as a label for the page — a reader who asked for a document that is not there was shown the word "workbench" and nothing that made sense of it. It is still worth printing, because it is what the other three surfaces call the same failure, so it is framed as the operation rather than left standing as a heading. #}

while running {{ problem.op }}

{% if problem.error %}

{{ problem.error.type }}

{{ problem.error.message }}

{% if problem.error.hint %}

{{ problem.error.hint }}

{% endif %} {% endif %}
{# A refusal is where a reader is most likely to be stuck, and the frame's navigation is a list of eleven areas rather than the way back to the one they came from. #}

{%- for name, path, label in navigation %}{% if name == area %}Back to {{ label }}{% endif %}{% endfor -%}

{% endblock %}