mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
rate limit message on 429
This commit is contained in:
parent
24d608d365
commit
f6a5979334
@ -14,6 +14,10 @@ export class ErrorResponse {
|
|||||||
if (errorModel) {
|
if (errorModel) {
|
||||||
this.message = errorModel.Message;
|
this.message = errorModel.Message;
|
||||||
this.validationErrors = errorModel.ValidationErrors;
|
this.validationErrors = errorModel.ValidationErrors;
|
||||||
|
} else {
|
||||||
|
if (status === 429) {
|
||||||
|
this.message = 'Rate limit exceeded. Try again later.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.statusCode = status;
|
this.statusCode = status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user