Skip to content

Match the result codes table casing for ProjectHasNoApiAccess - #3352

Merged
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/issue-3349
Aug 7, 2026
Merged

Match the result codes table casing for ProjectHasNoApiAccess#3352
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/issue-3349

Conversation

@adamtheturtle

@adamtheturtleadamtheturtle commented Aug 7, 2026

Copy link
Copy Markdown
Member

Closes#3349.

The mock returned ProjectHasNoAPIAccess, while Vuforia's result codes table spells it ProjectHasNoApiAccess.

Confirming the casing against a real database needs a project with no API access, which the verified-fake test setup does not create, and no observed response with either spelling could be found. The mock's spelling traced back to a hand-written 2019 doc list of unhandled result codes (edd6f91), never an observed body, so the result codes table is the better source. This changes the mock to match it.

  • ResultCodes.PROJECT_HAS_NO_API_ACCESS is now ProjectHasNoApiAccess.
  • The internal ProjectHasNoAPIAccessError validator exception is renamed to ProjectHasNoApiAccessError.
  • docs/source/differences-to-vws.rst records that the casing comes from the docs table rather than an observed response.

vws-python and vws-cli both map this result code by the old spelling, so they no longer recognize this response until they are updated; issues are filed for both. The mock's own test for this state now asserts the raw response instead of going through vws-python, whose from_result_code would raise KeyError for an unmapped code.

🤖 Generated with Claude Code

Closes#3349
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Closes#3349
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirm the casing of the ProjectHasNoApiAccess result code

1 participant

@adamtheturtle