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
"An attempt was made to call a method that does not exist. Note, calling methods that expect numeric ids (like /users/{ids}) with non-numeric ids can also result in this error.",
108
-
StackExchangeApiError.NoMethod);
109
-
}
110
-
111
-
if(statusCode==(HttpStatusCode)405)
112
-
{
113
-
thrownewStackExchangeApiException(
114
-
"A method was called in a manner that requires an application key (generally, with an access token), but no key was passed.",
115
-
StackExchangeApiError.KeyRequired);
116
-
}
117
-
118
-
if(statusCode==(HttpStatusCode)406)
119
-
{
120
-
thrownewStackExchangeApiException(
121
-
"An access token is no longer believed to be secure, normally because it was used on a non-HTTPS call. The access token will be invalidated if this error is returned.",
122
-
StackExchangeApiError.AccessTokenCompromised);
123
-
}
124
-
}
86
+
thrownewStackExchangeApiException(
87
+
"The server indicated a client error has occured and returned the following HTTP status code: "+response.StatusCode+
"An unexpected error occurred in the API. It has been logged, and Stack Exchange developers have been notified. You should report these errors on Stack Apps if you want to be notified when they're fixed.",
132
-
StackExchangeApiError.InternalError);
133
-
}
95
+
thrownewStackExchangeApiException(
96
+
"The server indicated a server error has occured and returned the following HTTP status code: "+statusCode,
/// 400 status code. An invalid parameter was passed, this includes even "high level" parameters like key or site.
31
+
/// 400 status codes.
32
32
/// </summary>
33
-
BadParameter,
34
-
35
-
/// <summary>
36
-
/// 401 status code. A method that requires an access token (obtained via authentication) was called without one.
37
-
/// </summary>
38
-
AccessTokenRequired,
39
-
40
-
/// <summary>
41
-
/// 402 status code. An invalid access token was passed to a method.
42
-
/// </summary>
43
-
InvalidAccessToken,
44
-
45
-
/// <summary>
46
-
/// 403 status code. A method which requires certain permissions was called with an access token that lacks those permissions.
47
-
/// </summary>
48
-
AccessDenied,
49
-
50
-
/// <summary>
51
-
/// 404 status code. An attempt was made to call a method that does not exist. Note, calling methods that expect numeric ids (like /users/{ids}) with non-numeric ids can also result in this error.
52
-
/// </summary>
53
-
NoMethod,
54
-
55
-
/// <summary>
56
-
/// 405 status code. A method was called in a manner that requires an application key (generally, with an access token), but no key was passed.
57
-
/// </summary>
58
-
KeyRequired,
59
-
60
-
/// <summary>
61
-
/// 406 status code. An access token is no longer believed to be secure, normally because it was used on a non-HTTPS call. The access token will be invalidated if this error is returned.
62
-
/// </summary>
63
-
AccessTokenCompromised,
64
-
65
-
/// <summary>
66
-
/// 500 status code. An unexpected error occurred in the API. It has been logged, and Stack Exchange developers have been notified. You should report these errors on Stack Apps if you want to be notified when they're fixed.
67
-
/// </summary>
68
-
InternalError,
69
-
70
-
/// <summary>
71
-
/// 502 status code. An application has violated part of the rate limiting contract, so the request was terminated.
72
-
/// </summary>
73
-
ThrottleViolation,
33
+
ClientError,
74
34
75
35
/// <summary>
76
-
/// 503 status code. Some or all of the API is unavailable. Applications should backoff on requests to the method invoked.
0 commit comments