docs: private String getErrorCode(String errorShapeName) {
          ErrorTrait errorTrait = getServiceModel().getShapes().get(errorShapeName).getErrorTrait();
          if (isErrorCodeOverridden(errorTrait)) {
              return errorTrait.getErrorCode();
          } else {
              return errorShapeName;
          }
      }