MCPcopy Create free account
hub / github.com/auth0-blog/angular2-authentication-sample / StatusError

Function StatusError

backend/statusError.js:1–6  ·  view source on GitHub ↗
(msg, status)

Source from the content-addressed store, hash-verified

1function StatusError(msg, status) {
2 var err = Error.call(this, msg);
3 err.status = status;
4 err.name = 'StatusError';
5 return err;
6}
7
8
9StatusError.prototype = Object.create(Error.prototype, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected