You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: WordPressKit/WordPressAPIError.swift
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ public enum WordPressAPIError<EndpointError>: Error where EndpointError: Localiz
15
15
case connection(URLError)
16
16
/// The API call returned an error result. For example, an OAuth endpoint may return an 'incorrect username or password' error, an upload media endpoint may return an 'unsupported media type' error.
17
17
case endpointError(EndpointError)
18
+
/// The API call returned an status code that's unacceptable to the endpoint.
19
+
case unacceptableStatusCode(response:HTTPURLResponse, body:Data)
18
20
/// The API call returned an HTTP response that WordPressKit can't parse. Receiving this error could be an indicator that there is an error response that's not handled properly by WordPressKit.
19
21
case unparsableResponse(response:HTTPURLResponse?, body:Data?)
0 commit comments