We are using string splitting to handle request exceptions in get_status function. Is there a more efficient way to do this?