added custom error code