diff --git a/kong/plugins/idempotency/access.lua b/kong/plugins/idempotency/access.lua index 46c8688..b7d44fe 100644 --- a/kong/plugins/idempotency/access.lua +++ b/kong/plugins/idempotency/access.lua @@ -26,7 +26,7 @@ function _M.execute(conf, version, prefix, client) if not cache then kong.response.set_header('x-idempotency-status', 'waiting_response') - kong.response.exit(400, { message = 'x-idempotency-status waiting_response' }) + kong.response.exit(409, { message = 'x-idempotency-status waiting_response' }) return end