---
title: "respond(error:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmetadataitemvaluerequest/respond(error:)"
---

# respond(error:)

Returns an error when the system fails to load the value.

## Declaration

```swift
func respond(error: any Error)
```

## Parameters

- `error`: The error to return for the request.

## See Also

### Handling the response

- [respond(value:)](avfoundation/avmetadataitemvaluerequest/respond(value:).md)
- [metadataItem](avfoundation/avmetadataitemvaluerequest/metadataitem.md)
