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

Add more status codes #2

Open
boyney123 opened this issue Apr 20, 2019 · 1 comment
Open

Add more status codes #2

boyney123 opened this issue Apr 20, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@boyney123
Copy link
Owner

At the moment MockIt supports

export const StatusCodes = {
  OK: "200",
  CREATED: "201",
  NO_CONTENT: "204",
  BAD_REQUEST: "400",
  FORBIDDEN: "401",
  INTERNAL_SERVER_ERROR: "500"
};

Might be worth adding some more? https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

If anybody is up for the challenge :)?

@boyney123 boyney123 added enhancement New feature or request good first issue Good for newcomers labels Apr 20, 2019
@aaronmcadam
Copy link

One code that I'd probably like is 422: Unprocessable Entity. It's what Rails returns when a payload (POST or PATCH) fails validation. (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422)

@zecarrera zecarrera mentioned this issue Aug 9, 2019
2 tasks
boyney123 pushed a commit that referenced this issue Aug 13, 2019
* 1.2.0 (#62)

* Update changelog for 1.2.0

* feat(security): prevent secrets from leaking to source control (#59)

* feat(security): prevent secrets from leaking to source control

* chore: update lint-staged pacakgeto use v9

* fix: update versions

* fix(security): add secrets baseline

* 🚧 Added two extra status codes

* ✅ Unit checks now validates options groups

* 🚧 Label is only visible as a label attribute
boyney123 added a commit that referenced this issue Aug 13, 2019
* Update changelog for 1.2.0

* Fix/#2 status codes (#65)

* 1.2.0 (#62)

* Update changelog for 1.2.0

* feat(security): prevent secrets from leaking to source control (#59)

* feat(security): prevent secrets from leaking to source control

* chore: update lint-staged pacakgeto use v9

* fix: update versions

* fix(security): add secrets baseline

* 🚧 Added two extra status codes

* ✅ Unit checks now validates options groups

* 🚧 Label is only visible as a label attribute

* Update changelog for 1.2.1

* fix(security): clean up markdown (#64)

* Update changelog for 1.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants