Fixed inconsistent response

It looks like retrieve gives back a string instead of int for
the status.

Sem-Ver: bugfix