From f6a597933473141cc955fbbd13db8f4cbc829818 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 12 Jul 2018 11:52:55 -0400 Subject: [PATCH] rate limit message on 429 --- src/models/response/errorResponse.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/response/errorResponse.ts b/src/models/response/errorResponse.ts index 4297427711..74abda15f4 100644 --- a/src/models/response/errorResponse.ts +++ b/src/models/response/errorResponse.ts @@ -14,6 +14,10 @@ export class ErrorResponse { if (errorModel) { this.message = errorModel.Message; this.validationErrors = errorModel.ValidationErrors; + } else { + if (status === 429) { + this.message = 'Rate limit exceeded. Try again later.'; + } } this.statusCode = status; }