Back to Browsershot

Prevent unsuccessful responses

docs/miscellaneous-options/prevent-unsuccessful-responses.md

5.3.0200 B
Original Source

You may want to throw an error when the page response is unsuccessful, you can use the following method :

php
Browsershot::url('https://example.com')
   ->preventUnsuccessfulResponse()
    ...