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

feat: convert synthentic status codes to errors #285

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jul 10, 2024

Map synthetic status codes like 801 to string error codes like HOSTNAME_DNS_ERROR to make the retrieval results easier to understand.

Links:

Map synthetic status codes like 801 to string error codes i
like HOSTNAME_DNS_ERROR to make the retrieval results easier
to understand.

Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos requested a review from juliangruber July 10, 2024 10:23
case 901: return 'UNSUPPORTED_CID_HASH_ALGO'
case 902: return 'CONTENT_VERIFICATION_FAILED'
case 903: return 'UNEXPECTED_CAR_BLOCK'
case 904: return 'CANNOT_PARSE_CAR_FILE'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to move these status code to a shared node module eventually

@bajtos bajtos merged commit 7051f06 into main Jul 10, 2024
6 checks passed
@bajtos bajtos deleted the feat-descriptive-fetch-errors branch July 10, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants