Better status result checking in api