Added custom error exception codes