Module: S3Proxy::App::Errors
- Defined in:
- lib/s3_proxy/app.rb
Class Method Summary collapse
Class Method Details
.forbidden ⇒ Object
83 84 85 |
# File 'lib/s3_proxy/app.rb', line 83 def forbidden [403, {'Content-Type' => 'text/plain'}, ["forbidden"]] end |
.method_not_allowed ⇒ Object
75 76 77 |
# File 'lib/s3_proxy/app.rb', line 75 def method_not_allowed [405, {'Content-Type' => 'text/plain'}, ["method not allowed"]] end |
.not_found ⇒ Object
79 80 81 |
# File 'lib/s3_proxy/app.rb', line 79 def not_found [404, {'Content-Type' => 'text/plain'}, ["not found"]] end |
.unknown(code) ⇒ Object
87 88 89 |
# File 'lib/s3_proxy/app.rb', line 87 def unknown(code) [code, {'Content-Type' => 'text/plain'}, ["Error: #{code}"]] end |