This request header contains the mode of the layer targeted for a failed fragment update.
A fragment update is considered failed if the server responds with a status code other than 2xx, but still renders HTML.
Server-side code is free to render different HTML for different modes. For example, you might prefer to not render a site navigation for overlays.
Assume we have the following form in a drawer overlay. The form targets the root layer:
<!-- label: Form within an overlay -->
<form action="/submit" up-submit up-layer="root"> <!-- mark: up-layer -->
...
</form>
Because failed form submissions update the <form>
element,
submitting this form will send the following headers:
X-Up-Mode: root
X-Up-Fail-Mode: drawer