enhanced-spotify-api
Version:
Object-oriented library to work with Spotify's API. Includes wrapper for regular endpoints and additional functionality and grouping of requests.
13 lines (9 loc) • 328 B
JavaScript
// From spotify-web-api
// Used to fix endpoints that were broken and add new endpoints not yet added.
function WebapiError(message, statusCode) {
this.name = 'WebapiError';
this.message = message || '';
this.statusCode = statusCode;
}
WebapiError.prototype = Error.prototype;
module.exports = WebapiError;