Edit this page

up.protocol X-Up-Fail-Context
HTTP header

This feature is experimental. Please share your experiences so we know what to keep or change.

This request header contains the context of the layer targeted for a failed fragment update, serialized as JSON.

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 contexts. For example, you might prefer to not render a site navigation for overlays.

Example

X-Up-Fail-Context: { "context": "Choose a company contact" }