Show correct information in case of an error

Hi, I've noticed that if you hit an error with the API you don't get back the error message.
This is because the code is looking at the wrong field; `error` instead of `errors`.

I've changed this to use the correct field and to show warnings and response codes also.