What's Ramaze's equivalent to Sinatra's Sinatra::NotFound?

107 Views Asked by At

In other words, how do I throw a "404 - not found" in Ramaze?

1

There are 1 best solutions below

0
nemesv On BEST ANSWER

You can use the Innate::Helper::Redirect#respond (source) method which gets included into your controller to return any response:

def my_action    
  respond("Response body", 404)
end