- return error code when there is a timeout