Error codes
What siteverify and the widget can report.
Siteverify
| Code | Meaning |
|---|---|
missing-input-secret | No secret was sent. |
invalid-input-secret | The secret is wrong or was rotated. |
missing-input-response | No token was sent; the form was likely submitted before the widget finished. |
invalid-input-response | The token is malformed, from another site, or from a test key. |
timeout-or-duplicate | The token was already used or is over 5 minutes old. |
rate-limited | Too many verifications for this secret in one minute. |
bad-request | The body couldn't be read. |
internal-error | Something failed on our side; retry with an idempotency_key. |
The server libraries add hostname-mismatch, action-mismatch, score-too-low and network-error.
Widget
network, failed, invalid-sitekey and invalid-hostname reach your errorCallback.