Bug Fix: fixed typo in statusCode handling