module S3Proxy::App::Errors

Public Class Methods

forbidden() click to toggle source
# File lib/s3_proxy/app.rb, line 129
def forbidden
  [403, {'Content-Type' => 'text/plain'}, ["forbidden"]]
end
method_not_allowed() click to toggle source
# File lib/s3_proxy/app.rb, line 121
def method_not_allowed
  [405, {'Content-Type' => 'text/plain'}, ["method not allowed"]]
end
not_found() click to toggle source
# File lib/s3_proxy/app.rb, line 125
def not_found
  [404, {'Content-Type' => 'text/plain'}, ["not found"]]
end
not_modified() click to toggle source
# File lib/s3_proxy/app.rb, line 137
def not_modified
  [304, {'Content-Type' => 'text/plain'}, ["not modified"]]
end
precondition_failed() click to toggle source
# File lib/s3_proxy/app.rb, line 133
def precondition_failed
  [412, {'Content-Type' => 'text/plain'}, ["precondition failed"]]
end
unknown(code) click to toggle source
# File lib/s3_proxy/app.rb, line 141
def unknown(code)
  [code, {'Content-Type' => 'text/plain'}, ["Error: #{code}"]]
end