Fix XD UI on ubuntu
- Removed the 'rest/interceptor/errorcode' lib
  fails to load in ubuntu
Add produces annotation attribute to metrics controllers
Merge remote-tracking branch 'upstream/master'
Add errorCode.js back and fix case-sensitivity
Fix typo in exception message