allow 'okay' response codes for API client. fixes #315