module Wunderbar::ServerError
Some proxies will replace server errors with their own output, and some applications will want to indicate that there is useful, parseable, content in controlled failures. For this reason, allow the server error responses to be customized by the application.
Public Class Methods
status()
click to toggle source
# File lib/wunderbar/environment.rb, line 76 def self.status @@status end
status=(status)
click to toggle source
# File lib/wunderbar/environment.rb, line 68 def self.status=(status) @@status = status end
text()
click to toggle source
# File lib/wunderbar/environment.rb, line 80 def self.text "#{@@status} #{@@text}" end
text=(text)
click to toggle source
# File lib/wunderbar/environment.rb, line 72 def self.text=(text) @@text = text end