When an API only returns error codes