REST client now belongs to core module
New response codes for REST api