Change conditions when raising Server side Error