/
ValidationError.cs
48 lines (41 loc) · 1.39 KB
/
ValidationError.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
namespace Griesoft.AspNetCore.ReCaptcha
{
/// <summary>
/// Recaptcha validation error reason message enum fields.
/// </summary>
public enum ValidationError
{
/// <summary>
/// Something went wrong in a very bad way. You can consider yourself lucky when you hit this error.
/// </summary>
Undefined,
/// <summary>
/// No input secret was provided. Make sure you have configured the service correctly.
/// </summary>
MissingInputSecret,
/// <summary>
/// The secret parameter is invalid or malformed. Make sure you have not switched the secret key with the site key accidentally.
/// </summary>
InvalidInputSecret,
/// <summary>
/// The response token is missing.
/// </summary>
MissingInputResponse,
/// <summary>
/// The response parameter is invalid or malformed.
/// </summary>
InvalidInputResponse,
/// <summary>
/// The request is invalid or malformed.
/// </summary>
BadRequest,
/// <summary>
/// The response is no longer valid: either is too old or has been used previously.
/// </summary>
TimeoutOrDuplicate,
/// <summary>
/// The connection to the reCAPTCHA validation endpoint failed.
/// </summary>
HttpRequestFailed
}
}