 				}
 				else {
 					print("Unable to set contentType on contentInformationRequest.")
-					let error = NSError(domain: AssetLoaderDelegate.errorDomain, code: -1, userInfo: nil)
+                    let error = NSError(domain: AssetLoaderDelegate.errorDomain, code: -5, userInfo: nil)
 					resourceLoadingRequest.finishLoading(with: error)
 					return
 				}

                    
                    guard let dataRequest = resourceLoadingRequest.dataRequest else {
                        print("no data is being requested in loadingRequest")
                        let error = NSError(domain: AssetLoaderDelegate.errorDomain, code: -6, userInfo: nil)
                        resourceLoadingRequest.finishLoading(with: error)
                        return
                    }
                    
                    // Provide data to the loading request.
                    dataRequest.respond(with: persistentContentKeyData)
                    resourceLoadingRequest.finishLoading()  // Treat the processing of the request as complete.
                    


class AssetLoaderDelegate: NSObject {
    
    
    static let licenseExpirationTimeInMinute = Double(2)
    
    /// The URL scheme for FPS content.
    static let customScheme = "^skd|^http"
    
