file_get_contents when url doesn't exist

I'm using file_get_contents() to access a URL. file_get_contents('http://somenotrealurl.com/notrealpage'); If the URL is not real, it return this error message. How can I get it to error gracefu...