UNPKG

@sap/xsodata

Version:

Expose data from a HANA database as OData V2 service with help of .xsodata files.

20 lines (16 loc) 419 B
'use strict'; const util = require('util'); const HttpError = require('./../httpError'); module.exports = Unauthorized; /** * Error indicating an authorization problem * @param message * @param cause * @param context * @constructor */ function Unauthorized(message, context, cause) { HttpError.call(this, message, context, cause, 401); this.context = context; } util.inherits(Unauthorized, HttpError);