class RestCore::ErrorDetectorHttp

Public Class Methods

new(app, detector=nil) click to toggle source
Calls superclass method
# File lib/rest-core/middleware/error_detector_http.rb, line 6
def initialize app, detector=nil
  super(app, detector ||
             lambda{ |env| (env[RESPONSE_STATUS] || 200) / 100 >= 4 })
end