add 501 to errorMessage and RestResponseUtilTest

add 501 to errorMessage and RestResponseUtilTest