UNPKG

@sap/xsodata

Version:

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

21 lines (16 loc) 415 B
'use strict'; var util = require('util'); var 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);