Refactoring Resource-Locating and Error-Codes