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

Update status endpoint to return non-200 if any component isn't reachable #652

Open
maxsibilla opened this issue Mar 3, 2025 · 0 comments

Comments

@maxsibilla
Copy link
Contributor

maxsibilla commented Mar 3, 2025

If any current check fails return a 500 status code, otherwise return a 200.

Additionally check the following, add an entry to the status json for each and return a 500 if any fails:

  • A call to https://entity.api.sennetconsortium.org/doi/redirect/SNT577.KHFG.572 returns an http 307 status code with a redirect URL that, when doing a GET on returns a status code in the range 200 <= code <= 299

  • A call to https://doi.org/10.60586/SNT577.KHFG.572 returns an http 302 status code with a redirect URL that, when doing a GET on it returns a status code in the range 200 <= code <= 299

@maxsibilla maxsibilla moved this to Ready in CODCC Mar 3, 2025
@maxsibilla maxsibilla added this to CODCC Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant