Consolidated REST server error handling in main.js