Class | Net::HTTPResponse |
In: |
lib/s33r/s33r_http.rb
|
Parent: | Object |
Addtions to the Net::HTTP classes
Adds some convenience functions for checking response status.
body | [W] | |
success | [RW] |
# File lib/s33r/s33r_http.rb, line 11 11: def check_s3_availability 12: if (500..503).include? code.to_i 13: raise S33r::S33rException::S3FallenOver, "S3 has fallen over! (got a #{code} code in response)" 14: end 15: end