diff --git a/WebApiThrottle/ThrottlingFilter.cs b/WebApiThrottle/ThrottlingFilter.cs index 57804ac..7f1a93c 100644 --- a/WebApiThrottle/ThrottlingFilter.cs +++ b/WebApiThrottle/ThrottlingFilter.cs @@ -210,7 +210,7 @@ public override void OnActionExecuting(HttpActionContext actionContext) // add status code and retry after x seconds to response actionContext.Response = QuotaExceededResponse( actionContext.Request, - string.Format(message, rateLimit, rateLimitPeriod), + content, QuotaExceededResponseCode, core.RetryAfterFrom(throttleCounter.Timestamp, rateLimitPeriod)); }