Fixed routes for new RESTAS version, also started working on better error handling