Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle 404's from get_policy_search endpoint #2099

Open
anth-volk opened this issue Oct 15, 2024 · 0 comments
Open

Properly handle 404's from get_policy_search endpoint #2099

anth-volk opened this issue Oct 15, 2024 · 0 comments

Comments

@anth-volk
Copy link
Collaborator

In conjunction with RESTful expectations, PolicyEngine/policyengine-api#1854 returns a 404 when no records are found from the get_policy_search endpoint. However, that's not necessarily an indication of failure, just that no records have been found. We'll need to update the policy search box to allow 404's and just to output no policies, instead of erroring, which I believe is only console logged at the moment in prod, but throws a runtime error while testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant