---
title: WKWebpagePreferences.UpgradeToHTTPSPolicy.errorOnFailure
framework: webkit
role: symbol
role_heading: Case
path: webkit/wkwebpagepreferences/upgradetohttpspolicy/erroronfailure
---

# WKWebpagePreferences.UpgradeToHTTPSPolicy.errorOnFailure

## Declaration

```swift
case errorOnFailure
```
