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

Added HTTP code 423 Locked #112

Merged
merged 3 commits into from May 20, 2016
Merged

Added HTTP code 423 Locked #112

merged 3 commits into from May 20, 2016

Conversation

jsonmaur
Copy link
Contributor

In response to #111, this adds boom.locked() which returns the 423 Locked response.

@@ -32,6 +32,7 @@ Lead Maintainer: [Adam Bretz](https://github.com/arb)
- [`Boom.rangeNotSatisfiable([message], [data])`](#boomrangenotsatisfiablemessage-data)
- [`Boom.expectationFailed([message], [data])`](#boomexpectationfailedmessage-data)
- [`Boom.badData([message], [data])`](#boombaddatamessage-data)
- [`Boom.locked([message], [data])`](#boomlockedmessage-data)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this; the TOC is auto generated on version bumps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know.

- `data` - optional additional error data.

```js
Boom.locked('this account has been locked and it is your fault');
Copy link
Contributor

Choose a reason for hiding this comment

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

the it is your fault is a bit harsh 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. Not sure "account" is strictly necessary either. Why not just:

  • The resource that is being accessed is locked
  • This resource has been locked

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good! (I know this is just an example but people look at this as an example so...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, fair enough :P

@arb arb added this to the 3.2.0 milestone May 20, 2016
@arb arb self-assigned this May 20, 2016
@arb arb added the feature New functionality or improvement label May 20, 2016
@arb arb merged commit c3b3c6b into hapijs:master May 20, 2016
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot unassigned arb Jan 9, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants