UnauthorizedError

Extends

code
Default: 401
message
Default: 'Unauthorized'
new UnauthorizedError(options)
Parameters:
  • options optional
    • Type: Object
      • apiCode optional
        • Type: String
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