summary refs log tree commit
diff options
context:
space:
mode:
authorMatt Kasa <mkasa@baent.net>2014-03-07 19:43:24 -0800
committerMatt Kasa <mkasa@baent.net>2014-03-07 19:43:24 -0800
commitd71053f2f3734326336020f669641d56e821b734 (patch)
tree249a50c9554aa49278589a1b6b135846662e30cc
parent7fe910e0063388e2f636724925bd5f8b9905cc89 (diff)
downloadrack-d71053f2f3734326336020f669641d56e821b734.tar.gz
Add helper method for 418
-rw-r--r--lib/rack/response.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rack/response.rb b/lib/rack/response.rb
index bd39da3b..12536710 100644
--- a/lib/rack/response.rb
+++ b/lib/rack/response.rb
@@ -129,6 +129,7 @@ module Rack
       def forbidden?;          status == 403;                        end
       def not_found?;          status == 404;                        end
       def method_not_allowed?; status == 405;                        end
+      def i_m_a_teapot?;       status == 418;                        end
       def unprocessable?;      status == 422;                        end
 
       def redirect?;           [301, 302, 303, 307].include? status; end