Requests_Response::throw_for_status( boolean $allow_redirects = true )

In this article

Throws an exception if the request was not successful

Parameters

$allow_redirectsbooleanoptional
Set to false to throw on a 3xx as well

Default:true

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.