changed statusCode from string to number
replace string code to config value