fix index out of bound exception when statuscode equal to SC_NO_CONTENT