mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
rate limit message on 429
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user