lib/utopia/controller/base.rb
def fail!(error = 400, message = nil)
				status = HTTP::Status.new(error, 400...600)
				
				message ||= status.to_s
				respond! [status.to_i, {}, [message]]
			end
# Respond with an error which indiciates some kind of failure.
Respond with an error which indiciates some kind of failure.
Respond with an error which indiciates some kind of failure .
def fail!(error = 400, message = nil)
				status = HTTP::Status.new(error, 400...600)
				message ||= status.to_s
				respond! [status.to_i, {}, [message]]
			end
def fail! ( error = 400 , message = nil ) status = HTTP :: Status . new ( error , 400 ... 600 ) message ||= status . to_s respond! [ status . to_i , { } , [ message ] ] end
Respond with an error which indiciates some kind of failure.
Respond with an error which indiciates some kind of failure .
error
message