Class: Idempo::MalformedKeyErrorApp
- Inherits:
-
Object
- Object
- Idempo::MalformedKeyErrorApp
- Defined in:
- lib/idempo/malformed_key_error_app.rb
Class Method Summary collapse
Class Method Details
.call(env) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/idempo/malformed_key_error_app.rb', line 2 def self.call(env) res = { ok: false, error: { message: "The Idempotency-Key header provided was empty or malformed" } } [400, {"Content-Type" => "application/json"}, [JSON.pretty_generate(res)]] end |