Better error handling

I got an error due to overcoming of youtube api quota limit.
The error instead of matching the string `<errors>...` starts with `<xml version...>`.

So I added the regex `/^<\?xml version.+<\/errors>$/` that data has to match to be detected as an error.