<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LinkPresentation",
  "identifier" : "/documentation/LinkPresentation/LPError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Link Presentation"
    ],
    "preciseIdentifier" : "c:@E@LPErrorCode"
  },
  "title" : "LPError.Code"
}
-->

# LPError.Code

Possible error values that can be returned from LinkPresentation APIs.

```
enum Code
```

## Topics

### Error cases

[`LPError.Code.metadataFetchCancelled`](/documentation/LinkPresentation/LPError/Code/metadataFetchCancelled)

An error indicating that the metadata fetch was canceled by the client.

[`LPError.Code.metadataFetchFailed`](/documentation/LinkPresentation/LPError/Code/metadataFetchFailed)

An error indicating that a metadata fetch failed.

[`LPError.Code.metadataFetchTimedOut`](/documentation/LinkPresentation/LPError/Code/metadataFetchTimedOut)

An error indicating that the metadata fetch took longer than allowed.

[`LPError.Code.unknown`](/documentation/LinkPresentation/LPError/Code/unknown)

An unknown error.



---

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)