I'd like to delay authentication failure attempts to help mitigate distributed authentication scanning. If my backend returns 403 to an authentication attempt, I'd like nginx to wait some set amount of time before returning the result.
Is this possible? This question is similar to How to insert a delay in response with nginx?, but the use-case is different and the responses there basically amount to "Do what you're trying to do a different way."