fixed the error translation from the statusCodeError type into a corresponding graph api Error representation