FIX Status lookup by its numeric code
REFACTOR better error handling & fixed NullPointerException errors