<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/1561514-cfmessageportsendrequest-error-c",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CFMessagePortSendRequest Error Codes"
}
-->

# CFMessagePortSendRequest Error Codes

Error codes for `CFMessagePortSendRequest`.

## Topics

### Constants

[`var kCFMessagePortSuccess: Int32`](/documentation/CoreFoundation/kCFMessagePortSuccess)

The message was successfully sent and, if a reply was expected, a reply was received.

[`var kCFMessagePortSendTimeout: Int32`](/documentation/CoreFoundation/kCFMessagePortSendTimeout)

The message could not be sent before the send timeout.

[`var kCFMessagePortReceiveTimeout: Int32`](/documentation/CoreFoundation/kCFMessagePortReceiveTimeout)

No reply was received before the receive timeout.

[`var kCFMessagePortIsInvalid: Int32`](/documentation/CoreFoundation/kCFMessagePortIsInvalid)

The message could not be sent because the message port is invalid.

[`var kCFMessagePortTransportError: Int32`](/documentation/CoreFoundation/kCFMessagePortTransportError)

An error occurred trying to send the message.

[`var kCFMessagePortBecameInvalidError: Int32`](/documentation/CoreFoundation/kCFMessagePortBecameInvalidError)

The message port was invalidated.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)