Add error handling to namespace management

 - Returns error message to clients.