Prevent unsuccessful responses You may want to throw an error when the page response is unsuccessful, you can use the following method : Browsershot::url('https://example.com') ->preventUnsuccessfulResponse() ... Passing environment variables to the browser Sending POST requests Help us improve this page