public static ServerErrorCode getMessageFormatErrorMapping(MessageFormatErrorCodes code) {
    ServerErrorCode errorCode = messageFormatErrorMapping.get(code);
    if (errorCode == null) {
      return ServerErrorCode.UnknownError;
    }
    return errorCode;
  }
Mapping of errors from all packages into server error codes
ambry-commons/src/main/java/com/github/ambry/commons/ErrorMapping.java