---
title: "es_respond_flags_result(_:_:_:_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_respond_flags_result(_:_:_:_:)"
---

# es_respond_flags_result(_:_:_:_:)

Responds to an event that requires authorization flags as a response.

## Declaration

```swift
func es_respond_flags_result(_ client: OpaquePointer, _ message: UnsafePointer<es_message_t>, _ authorized_flags: UInt32, _ cache: Bool) -> es_respond_result_t
```

## Parameters

- `client`: The client that produced the event.
- `message`: The message that delivered the event.
- `authorized_flags`: A flags value to apply as a mask on the flags in the event.
- `cache`: Indicates whether Endpoint Security should cache this result. The caching semantics depend on the specific event type.

## Return Value

Return Value A result that indicates whether the response succeeded or failed.

## Discussion

Discussion Some events require you to respond with es_respond_auth_result(_:_:_:_:). Responding to such events with this method instead fails with an error.

## See Also

### Responding to Events

- [es_respond_auth_result(_:_:_:_:)](endpointsecurity/es_respond_auth_result(_:_:_:_:).md)
- [es_auth_result_t](endpointsecurity/es_auth_result_t.md)
- [es_respond_result_t](endpointsecurity/es_respond_result_t.md)
