force statusCode to be a number