Method: HTTPX::Response#raise_for_status
- Defined in:
- lib/httpx/response.rb
#raise_for_status ⇒ Object
63 64 65 66 |
# File 'lib/httpx/response.rb', line 63 def raise_for_status return if @status < 400 raise HTTPError, self end |
63 64 65 66 |
# File 'lib/httpx/response.rb', line 63 def raise_for_status return if @status < 400 raise HTTPError, self end |