Very short version: Is there a list of possible errors thrown by file_get_contents()?
I have a PHP application that downloads a lot of files over HTTP using file_get_contents(). Sometimes errors occur and I need a tidy way of handling different errors (e.g. I might like to pause and try again, or make a change to the database, or simply log the error and move on). I had a look around but was unable to find a list of all possible errors, does such a thing exist?
Edit:
I neglected to mention I am currently converting errors to exceptions. My error messages say things like "Failed to open stream: HTTP request failed!". I would rather not add code to handle errors in a piecemeal fashion.
Edit: Some examples of the error messages I am currently seeing:
file_get_contents(): SSL: An existing connection was forcibly closed by the remote host
file_get_contents(_URL_): Failed to open stream: HTTP request failed!
file_get_contents(_URL_): Failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error