diff --git a/app.rb b/app.rb index af9f69a..d506fc3 100644 --- a/app.rb +++ b/app.rb @@ -110,9 +110,13 @@ end get '/' do if rate_limited? - status 429 + response = [ { status: 402, message: "I'm not paid enough for this." }, + { status: 418, message: "I'm just a teapot."}, + { status: 429, message: "Not so fast!"} ].sample + + status response[:status] content_type :json - return { error: "Too Many Requests" }.to_json + return { error: response[:message] }.to_json end lang = preferred_language