added conversion method from ServerFunctionCode to ServerStatusCode