Raise errors if response contains an error