Module: Wunderbar::ServerError
- Defined in:
- lib/wunderbar/environment.rb
Overview
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.
Constant Summary collapse
- @@status =
500
- @@text =
'Internal Server Error'
Class Method Summary collapse
Class Method Details
.status ⇒ Object
97 98 99 |
# File 'lib/wunderbar/environment.rb', line 97 def self.status @@status end |
.status=(status) ⇒ Object
89 90 91 |
# File 'lib/wunderbar/environment.rb', line 89 def self.status=(status) @@status = status end |
.text ⇒ Object
101 102 103 |
# File 'lib/wunderbar/environment.rb', line 101 def self.text "#{@@status} #{@@text}" end |
.text=(text) ⇒ Object
93 94 95 |
# File 'lib/wunderbar/environment.rb', line 93 def self.text=(text) @@text = text end |