koajs / koajs/parameter

wish: disclose that 422 is returned

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
67
Forks
11
PR merge metrics
No merged PRs in 30d

Description

People may return that the more common `400` status code is returned not `422`.

Guidance is that 422 only be returned if you are a WebDAV server:

https://www.keycdn.com/support/422-unprocessable-entity

Providing an option to return 400 instead would also be welcome. Possibly 400 should just be returned all the time.

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating where validation errors produce HTTP 422 responses, then clarify whether the request is disclosure, configurable 400 responses, or changing the default. Verify the agreed behavior with the existing test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.