Forgot error code in exception
Add method to extract code
Add test for service object