Skip to content

Commit 1072d54

Browse files
committed
Add API client identification error
1 parent 0f9a98c commit 1072d54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/Models/Error/YouTubePlayer+Error.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public extension YouTubePlayer {
2828
case notFound
2929
/// The owner of the requested video does not allow it to be played in embedded players.
3030
case embeddedVideoPlayingNotAllowed
31+
/// The request does not include the `HTTP Referer` header or equivalent API Client identification.
32+
case missingAPIClientIdentification
3133
}
3234

3335
}
@@ -42,7 +44,8 @@ public extension YouTubePlayer.Error {
4244
5: .html5NotSupported,
4345
100: .notFound,
4446
101: .embeddedVideoPlayingNotAllowed,
45-
150: .embeddedVideoPlayingNotAllowed
47+
150: .embeddedVideoPlayingNotAllowed,
48+
153: .missingAPIClientIdentification
4649
]
4750

4851
/// Creates a new instance of ``YouTubePlayer/Error``.

0 commit comments

Comments
 (0)