[fix] Wrong errno name in the api