When an error occurs in the API call then an exception is thrown, but the status vector is reset before passing it to the exception constructor, losing all information about the error. Looks like a copy and paste error, the reset() simply needs to be removed.