<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.12.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:@E@SFErrorCode"
  },
  "title" : "SFError.Code"
}
-->

# SFError.Code

Messages that describe a content blocker or Safari app extension error.

iOS, iPadOS, Mac Catalyst, visionOS:

```
enum Code
```

Mac Catalyst, macOS:

```
enum SFErrorCode
```

## Topics

### Error Codes

[`case loadingInterrupted`](/documentation/SafariServices/SFError/Code/loadingInterrupted)

There was an error loading the content blocker extension.

[`case noAttachmentFound`](/documentation/SafariServices/SFError/Code/noAttachmentFound)

The Content Blocker extension returned an <doc://com.apple.documentation/documentation/Foundation/NSExtensionItem> that did not include an attachment.

[`case noExtensionFound`](/documentation/SafariServices/SFError/Code/noExtensionFound)

A Content Blocker or Safari app extension with the specified bundle identifier was not found, or the bundle identifier specified an extension that was not owned by you.

### Enumeration Cases

[`case internalError`](/documentation/SafariServices/SFError/Code/internalError)

[`case maximumAttemptsExceeded`](/documentation/SafariServices/SFError/Code/maximumAttemptsExceeded)

[`case missingEntitlement`](/documentation/SafariServices/SFError/Code/missingEntitlement)

### Initializers

[`init?(rawValue: Int)`](/documentation/SafariServices/SFError/Code/init(rawValue:))

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)