Feature request: expose HTTP status code on `RepositoryError`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api
Research direction
Start by locating RepositoryError and the code that creates repository errors from HTTP responses; no file or test path is named in the issue. Inspect existing error tests, then add coverage showing that available status codes are exposed while errors without one remain valid. Done means callers can read the status code for HTTP failures, including the stated 404, 401/403, and server-error cases.
Written by the indexing model from the issue text.
Description
It would be helpful if RepositoryError exposed the underlying HTTP status code when available.
Applications may need to handle different failure cases differently, e.g. 404 Not found, 401/403 permission denied, and 500 or other server errors.
Currently callers can inspect the error message/reason, but it's not straightforward to extract the actual status code from there.
I propose adding an optional property such as statusCode?: number to RepositoryError and ensuring repository errors created from HTTP responses populate it.
Related issues
- #142
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 11
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IQSS/dataverse-client-javascript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IQSS/dataverse-client-javascript#477 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
IQSS/dataverse-client-javascript#476 · 4 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
IQSS/dataverse-client-javascript#465 · 1 comment · 2 reactions ·
-
GREI Re-arch
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
FY26 Sprint 3 FY27 Sprint 3 GREI Re-arch Size: 20 SPA
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in IQSS/dataverse-client-javascript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·