---
name: "up.Request.prototype.failTarget"
area: "API"
kind: "Property"
parent: "up.Request class"
url: "https://unpoly.com/api/up.Request.prototype.failTarget"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Request class](https://unpoly.com/api/up.Request.md)</nav>

# up.Request.prototype.failTarget

The CSS selector [targeted](https://unpoly.com/learn/targeting-fragments.md) by this request in case the server responds with an [error code](https://unpoly.com/learn/error-responses.md).

The selector will be sent as an [`X-Up-Fail-Target`](https://unpoly.com/api/X-Up-Fail-Target.md) header.

<nav aria-label="Guides">

- [Learn: Handling error responses](https://unpoly.com/learn/error-responses.md#fail-options)

</nav>

---

## Value {#value}

### failTarget {#failTarget}

Type: string

