We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f9a5a7 + d07d3c9 commit ad1e050Copy full SHA for ad1e050
src/api/index.ts
@@ -321,6 +321,13 @@ export class AtelierAPI {
321
// resolveWithFullResponse: true,
322
// simple: true,
323
});
324
+ if (response.status === 503) {
325
+ // User likely ran out of licenses
326
+ throw {
327
+ statusCode: response.status,
328
+ message: `The server at ${host}:${port} is unavailable. Check License Usage.`,
329
+ };
330
+ }
331
if (response.status === 401) {
332
authRequestMap.delete(target);
333
if (this.wsOrFile && !checkingConnection) {
0 commit comments