ForbiddenError

Extends

code
Default: 403
message
Default: 'Forbidden'
new ForbiddenError(message, msg)
Parameters:
  • message
    • Type: String
  • msg
    • Type: String
    • DEPRECATED - error message provided as the second argument

setUID(uid)
Parameters:
  • uid
    • Type: String or Integer
    • request indentifier

toJSON()Object
Returns: Object
toLogger()Object

similar to RequestError#toJSON except that it returns all information available instead of just public user facing error description.

Returns: Object
toSwagger()Object

Open API schema representation of the error response

Returns: Object
comments powered by Disqus