How to use the Locked function from http-errors

Find comprehensive JavaScript http-errors.Locked code examples handpicked from public code repositorys.

99
100
101
102
103
104
105
106
107
108
unprocessableEntity: function unprocessableEntity (message) {
  return new createError.UnprocessableEntity(message)
},

locked: function locked (message) {
  return new createError.Locked(message)
},

failedDependency: function failedDependency (message) {
  return new createError.FailedDependency(message)
fork icon30
star icon340
watch icon17

+ 55 other calls in file

161
162
163
164
165
166
167
168
169
170
module.exports.RangeNotSatisfiable = new HTTPErrors.RangeNotSatisfiable()
module.exports.ExpectationFailed = new HTTPErrors.ExpectationFailed()
module.exports.ImATeapot = new HTTPErrors.ImATeapot()
module.exports.MisdirectedRequest = new HTTPErrors.MisdirectedRequest()
module.exports.UnprocessableEntity = new HTTPErrors.UnprocessableEntity()
module.exports.Locked = new HTTPErrors.Locked()
module.exports.FailedDependency = new HTTPErrors.FailedDependency()
module.exports.UnorderedCollection = new HTTPErrors.UnorderedCollection()
module.exports.UpgradeRequired = new HTTPErrors.UpgradeRequired()
module.exports.PreconditionRequired = new HTTPErrors.PreconditionRequired()
fork icon1
star icon0
watch icon7

+ 41 other calls in file

133
134
135
136
137
138
139
140
141
142
case 422: {
  httpError = createError.UnprocessableEntity();
  break;
}
case 423: {
  httpError = createError.Locked();
  break;
}
case 424: {
  httpError = createError.FailedDependency();
fork icon0
star icon0
watch icon2

+ 41 other calls in file