It would be better to throw an error instead returning an error object. Also remove the code that checks the configuration error in the server constructor. Also, remove the code that checks the configuration error from the Server constructor. Same for all the code that returns an error object.