consul/ui/packages/consul-ui/app/utils/http/error.js

7 lines
134 B
JavaScript

export default class extends Error {
constructor(statusCode, message) {
super(message);
this.statusCode = statusCode;
}
}