Skip to content

Commit 2a5b078

Browse files
authored
Make risk intelligence token error codes consistent with backend (#18)
* make token error codes consistent with backend * bump version
1 parent 92fdbfa commit 2a5b078

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

friendly_captcha_client/schemas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class DefaultErrorCodes(str, Enum):
2525
SITEKEY_INVALID = "sitekey_invalid" # 400
2626
RESPONSE_MISSING = "response_missing" # 400
2727
TOKEN_MISSING = "token_missing" # 400
28-
TOKEN_EXPIRED = "token_expired" # 400
28+
TOKEN_EXPIRED = "token_expired" # 200
29+
TOKEN_INVALID = "token_invalid" # 200
2930
BAD_REQUEST = "bad_request" # 400
3031
RESPONSE_INVALID = "response_invalid" # 200
3132
RESPONSE_TIMEOUT = "response_timeout" # 200

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "friendly-captcha-client"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "A client for Friendly Captcha."
99
authors = [
1010
"Antal Nagy <dev@friendlycaptcha.com>",

0 commit comments

Comments
 (0)