[update] change custom errors to errno.h ones

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>