ConfigHubPub / ConfigHubPub/ConfigHubPlatform

Return correct http code when a context is not of the proper shape/form.

Open
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
80
Forks
25
PR merge metrics
No merged PRs in 30d

Description

If a context has the wrong number of values, say 'USA;NJ' is valid but 'NJ' is given, then the response is 406 when it should be 400 probably.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Reproduce the request with a valid context such as “USA;NJ” and an invalid one such as “NJ”, then trace the API request handling that selects the HTTP response code. Done means a context with the wrong number of values returns 400 instead of 406.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.