diff --git a/README.rdoc b/README.rdoc index 5d9514da48..6c7ae39726 100644 --- a/README.rdoc +++ b/README.rdoc @@ -311,14 +311,22 @@ To immediately stop a request within a filter or route use: halt -You can also specify a body when halting ... +You can also specify the status when halting ... + + halt 410 + +Or the body ... halt 'this will be the body' -Or set the status and body ... +Or both ... halt 401, 'go away!' +With headers ... + + halt 402, {'Content-Type' => 'text/plain'}, 'revenge' + == Passing A route can punt processing to the next matching route using pass: